otto/stdlib/unarchive
R Tyler Croy f8dc3af95e Update the cargo versions
Fixes #64
2021-03-03 22:04:25 -08:00
..
src cargo fmt 2020-11-03 15:22:47 -08:00
.gitignore Implement the corresponding `unarchive` step to grab a pipeline's artifacts later on 2020-11-01 15:52:41 -08:00
Cargo.toml Update the cargo versions 2021-03-03 22:04:25 -08:00
README.adoc Work in progress on the git step 2020-11-15 14:39:00 -08:00
manifest.yml Implement the corresponding `unarchive` step to grab a pipeline's artifacts later on 2020-11-01 15:52:41 -08:00

README.adoc

<html lang="en"> <head> </head>

unarchive

The unarchive step can help retrieve archived artifacts into the current agents executing workspace. This pattern allows using one agent for building artifacts, and retrieving them on other agents for further use in the pipeline.

Simple archive/unarchive
stage {
  name = 'Build'
  steps {
    sh 'make release'
    archive 'build/release/hello-world'
  }
}
stage {
  name = 'Test'
  steps {
    unarchive 'hello-world'
    sh 'chmod +x hello-world && ./hello-world'
  }
}
Unarchiving patterns
archive artifacts: 'target/release/*.tar.gz', name: 'release-builds'


unarchive 'release-builds'
---
</html>