Modify syntax of cp command used to copy out debs
Using Docker this way requires bash as the entry point and single quotes
around the arguments or it will try to pass the arguments of cp to the
tail -f entrypoint in the dockerfile resulting in an error.
@@ -87,8 +87,8 @@ node ('master') {
stage("Archive Build artifacts") {
sh 'mkdir -p build/debs'
- sh 'docker run --rm -v $(pwd)/build/debs:/build/debs sawtooth-sabre-cli:${ISOLATION_ID} bash -c "cp /tmp/*.deb /build/debs"'
- sh 'docker run --rm -v $(pwd)/build/debs:/build/debs sawtooth-sabre-tp:${ISOLATION_ID} bash -c "cp /tmp/*.deb /build/debs"'
+ sh 'docker run --rm -v $(pwd)/build/debs:/build/debs --entrypoint "/bin/bash" sawtooth-sabre-cli:${ISOLATION_ID} "-c" "cp /tmp/*.deb /build/debs"'
+ sh 'docker run --rm -v $(pwd)/build/debs:/build/debs --entrypoint "/bin/bash" sawtooth-sabre-tp:${ISOLATION_ID} "-c" "cp /tmp/*.deb /build/debs"'
archiveArtifacts artifacts: '*.tgz, *.zip'
archiveArtifacts artifacts: 'build/debs/*.deb'
archiveArtifacts artifacts: 'docs/build/html/**'
