diff options
author | Brian Samek <brian.samek@gmail.com> | 2017-04-05 15:20:11 -0400 |
---|---|---|
committer | Brian Samek <brian.samek@mongodb.com> | 2017-04-14 11:29:56 -0400 |
commit | f20d3d9ad3653ffcd2d905e8349ce2dbb64e52d6 (patch) | |
tree | 57d4a456a02a70f3c58bfadeea9ddbd890628c4d /etc | |
parent | 361f6986096caf3445cb3e41969d1dbf087223b5 (diff) | |
download | mongo-f20d3d9ad3653ffcd2d905e8349ce2dbb64e52d6.tar.gz |
SERVER-28692 Move shell tarball generation to compile task
(cherry picked from commit 7c54c55497c4035ecea3f086c36fd5cf827eac76)
Diffstat (limited to 'etc')
-rw-r--r-- | etc/evergreen.yml | 39 |
1 files changed, 29 insertions, 10 deletions
diff --git a/etc/evergreen.yml b/etc/evergreen.yml index 2ffefacca39..c1b28564481 100644 --- a/etc/evergreen.yml +++ b/etc/evergreen.yml @@ -645,6 +645,15 @@ tasks: ${python|python} ${packager_script} --prefix `pwd`/.. --distros ${packager_distro} --tarball `pwd`/../mongodb-binaries.tgz -s ${version} -m HEAD -a ${packager_arch} cd .. fi + + # Create separate shell archive + mkdir -p shell-archive/build + cd shell-archive + ${platform_decompress|tar xzvf} ../mongodb-binaries.tgz + find . -mindepth 3 ! -name "mongo${exe}" -type f -exec rm {} \; # delete bin/* except bin/mongo + ${python|python} ../buildscripts/make_archive.py -o mongodb-shell.${ext|tgz} $(find mongodb-* -type f) + cd .. + - command: archive.targz_pack params: target: "artifacts.tgz" @@ -687,6 +696,16 @@ tasks: params: aws_key: ${aws_key} aws_secret: ${aws_secret} + local_file: src/shell-archive/mongodb-shell.${ext|tgz} + remote_file: mongodb-mongo-v3.2/${build_variant}/${revision}/binaries/mongo-shell-${build_id}.${ext|tgz} + bucket: mciuploads + permissions: public-read + content_type: ${content_type|application/x-gzip} + display_name: Shell + - command: s3.put + params: + aws_key: ${aws_key} + aws_secret: ${aws_secret} local_file: artifacts.tgz remote_file: mongodb-mongo-v3.2/${build_variant}/${revision}/artifacts/${build_id}.tgz bucket: mciuploads @@ -1913,6 +1932,13 @@ tasks: params: aws_key: ${aws_key} aws_secret: ${aws_secret} + remote_file: mongodb-mongo-v3.2/${build_variant}/${revision}/binaries/mongo-shell-${build_id}.${ext|tgz} + bucket: mciuploads + local_file: src/mongo-shell.tgz + - command: s3.get + params: + aws_key: ${aws_key} + aws_secret: ${aws_secret} remote_file: mongodb-mongo-v3.2/${build_variant}/${revision}/sources/mongo-src-${build_id}.${ext|tgz} bucket: mciuploads local_file: src/distsrc.${ext|tgz} @@ -1955,19 +1981,12 @@ tasks: set -o errexit set -o verbose - mv mongo-binaries.tgz mongodb-binaries.${ext|tgz} - mv mongo-debugsymbols.tgz debugsymbols-*.${ext|tgz} || true - cp mongodb-*.${ext|tgz} mongodb-${push_name}-${push_arch}-${suffix}.${ext|tgz} - cp debugsymbols-*.${ext|tgz} mongodb-${push_name}-${push_arch}-debugsymbols-${suffix}.${ext|tgz} || true + mv mongo-binaries.tgz mongodb-${push_name}-${push_arch}-${suffix}.${ext|tgz} + mv mongo-shell.tgz mongodb-shell-${push_name}-${push_arch}-${suffix}.${ext|tgz} + mv mongo-debugsymbols.tgz mongodb-${push_name}-${push_arch}-debugsymbols-${suffix}.${ext|tgz} || true mv distsrc.${ext|tgz} mongodb-src-${src_suffix}.${ext|tar.gz} || true /usr/bin/find build/ -type f | grep msi$ | xargs -I original_filename cp original_filename mongodb-win32-${push_arch}-${suffix}.msi || true - # Extract shell and banner files out of scons-made archive for separate shell archive - ${platform_decompress|tar --wildcards -zxvf} mongodb-binaries.${ext|tgz} mongodb-*/bin/mongo${exe} mongodb-*/\[A-Z\]* - - # Create new shell archive (make_archive.py uses filename to determine what format archive to create) - ${python|python} buildscripts/make_archive.py -o mongodb-shell-${push_name}-${push_arch}-${suffix}.${ext|tgz} $(ls -d mongodb-*/bin/mongo${exe} mongodb-*/[A-Z]*) - notary-client.py --key-name "server-3.2" --auth-token-file ${workdir}/src/signing_auth_token --comment "Evergreen Automatic Signing ${revision} - ${build_variant} - ${branch_name}" --notary-url http://notary-service.build.10gen.cc:5000 --skip-missing mongodb-${push_name}-${push_arch}-${suffix}.${ext|tgz} mongodb-shell-${push_name}-${push_arch}-${suffix}.${ext|tgz} mongodb-${push_name}-${push_arch}-debugsymbols-${suffix}.${ext|tgz} mongodb-win32-${push_arch}-${suffix}.msi mongodb-src-${src_suffix}.${ext|tar.gz} if [ "${has_packages|}" = "true" ]; then |