Merge lp:~sinzui/juju-ci-tools/more-agents into lp:juju-ci-tools

Proposed by Curtis Hovey on 2015-05-27
Status: Merged
Merged at revision: 964
Proposed branch: lp:~sinzui/juju-ci-tools/more-agents
Merge into: lp:juju-ci-tools
Diff against target: 29 lines (+12/-0)
1 file modified
publish-revision (+12/-0)
To merge this branch: bzr merge lp:~sinzui/juju-ci-tools/more-agents
Reviewer Review Type Date Requested Status
Aaron Bentley (community) 2015-05-27 Approve on 2015-05-27
Review via email: mp+260353@code.launchpad.net

Description of the Change

Include centos and win agents in the testing streams.

This branch adds a rule to retrieve the agents from lastBuild of build-centos and build-win-agent. The test maas has win2012r2 images, the win2012 agent is copied to the extra name. This copy is analogous to the 'cp' we use in s3 to create all win agents for a juju version based on win2012.

Once I complete a remote workspace runner to build ppc64el packages, I can dismantle the publish-revision script to create 3 jobs: build-source-packages, build-binary-packages, and publish-revision (which will depend on build-binary-packages, built-centos, and build-win-agent)

To post a comment you must log in.
Aaron Bentley (abentley) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'publish-revision'
2--- publish-revision 2015-03-17 17:22:29 +0000
3+++ publish-revision 2015-05-27 18:03:35 +0000
4@@ -1,6 +1,7 @@
5 #!/bin/bash
6 set -eux
7
8+: ${SCRIPTS=$(readlink -f $(dirname $0))}
9 BUILD_PACKAGES=${BUILD_PACKAGES:-true}
10 BUILD_i386=${BUILD_i386:-true}
11 TARFILE=$($SCRIPTS/jujuci.py get build-revision 'juju-core_*.tar.gz' ./)
12@@ -80,6 +81,17 @@
13 done
14 fi
15
16+# These agents are built while the debs are built. This is safe to do because
17+# the debs take 45 minutes. When this script is dismantled, the job
18+# that publishes the revision will require build-centos, build-win-agen,
19+and the new build-packages job.
20+$SCRIPTS/jujuci.py get -b lastBuild \
21+ build-centos juju-*centos7-amd64.tgz $WORKSPACE
22+WIN2012=$($SCRIPTS/jujuci.py get -b lastBuild \
23+ build-win-agent juju-*win2012-amd64.tgz $WORKSPACE)
24+WIN2012R2=$(echo $WIN2012 | sed -e 's,win2012-,win2012r2-,')
25+cp $WIN2012 $WIN2012R2
26+
27 $RELEASE_TOOLS/assemble-streams.bash -n -t $WORKSPACE/ testing $VERSION $STREAMS
28 PUBLISH_ARGS="testing $STREAMS/juju-dist cpc"
29 $RELEASE_TOOLS/publish-public-tools.bash $PUBLISH_ARGS || \

Subscribers

People subscribed via source and target branches