Skip to content

Commit

Permalink
Merge pull request #3125 from oasisprotocol/ptrus/fix/longtests-artif…
Browse files Browse the repository at this point in the history
…acts-upload

ci: extract go artifacts upload code into a script
  • Loading branch information
ptrus authored Jul 22, 2020
2 parents 613ef89 + ef8f79d commit 4e97e18
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 38 deletions.
13 changes: 1 addition & 12 deletions .buildkite/benchmarks.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,7 @@ steps:
- label: Build Go node
command:
- .buildkite/go/build.sh

# Upload the built artifacts.
- cd /workdir/go/oasis-node
- buildkite-agent artifact upload oasis-node
- buildkite-agent artifact upload oasis-node.test
- cd /workdir/go/oasis-test-runner
- buildkite-agent artifact upload oasis-test-runner
- buildkite-agent artifact upload oasis-test-runner.test
- cd /workdir/go/oasis-net-runner
- buildkite-agent artifact upload oasis-net-runner
- cd /workdir/go/oasis-remote-signer
- buildkite-agent artifact upload oasis-remote-signer
- .buildkite/go/upload_artifacts.sh
plugins:
<<: *docker_plugin

Expand Down
15 changes: 1 addition & 14 deletions .buildkite/code.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,20 +106,7 @@ steps:
- label: Build Go node
command:
- .buildkite/go/build.sh

# Upload the built artifacts.
- cd /workdir/go/oasis-node
- buildkite-agent artifact upload oasis-node
- buildkite-agent artifact upload oasis-node.test
- cd /workdir/go/oasis-test-runner
- buildkite-agent artifact upload oasis-test-runner
- buildkite-agent artifact upload oasis-test-runner.test
- cd /workdir/go/oasis-test-runner/scenario/pluginsigner/example_signer_plugin
- buildkite-agent artifact upload example_signer_plugin.so
- cd /workdir/go/oasis-net-runner
- buildkite-agent artifact upload oasis-net-runner
- cd /workdir/go/oasis-remote-signer
- buildkite-agent artifact upload oasis-remote-signer
- .buildkite/go/upload_artifacts.sh
retry:
<<: *retry_agent_failure
plugins:
Expand Down
25 changes: 25 additions & 0 deletions .buildkite/go/upload_artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

set -euxo pipefail

pushd /workdir/go/oasis-node
buildkite-agent artifact upload oasis-node
buildkite-agent artifact upload oasis-node.test
popd

pushd /workdir/go/oasis-test-runner
buildkite-agent artifact upload oasis-test-runner
buildkite-agent artifact upload oasis-test-runner.test
popd

pushd /workdir/go/oasis-test-runner/scenario/pluginsigner/example_signer_plugin
buildkite-agent artifact upload example_signer_plugin.so
popd

pushd /workdir/go/oasis-net-runner
buildkite-agent artifact upload oasis-net-runner
popd

pushd /workdir/go/oasis-remote-signer
buildkite-agent artifact upload oasis-remote-signer
popd
13 changes: 1 addition & 12 deletions .buildkite/longtests.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,18 +44,7 @@ steps:
- label: Build Go node
command:
- .buildkite/go/build.sh

# Upload the built artifacts.
- cd /workdir/go/oasis-node
- buildkite-agent artifact upload oasis-node
- buildkite-agent artifact upload oasis-node.test
- cd /workdir/go/oasis-test-runner
- buildkite-agent artifact upload oasis-test-runner
- buildkite-agent artifact upload oasis-test-runner.test
- cd /workdir/go/oasis-net-runner
- buildkite-agent artifact upload oasis-net-runner
- cd /workdir/go/oasis-remote-signer
- buildkite-agent artifact upload oasis-remote-signer
- .buildkite/go/upload_artifacts.sh
plugins:
<<: *docker_plugin

Expand Down
1 change: 1 addition & 0 deletions .changelog/3125.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ci: Extract go artifacts upload code into a script

0 comments on commit 4e97e18

Please sign in to comment.