~sinzui/juju-ci-tools/cloudsigma-lib

« back to all changes in this revision

Viewing changes to publish-revision

  • Committer: Nate Finch
  • Date: 2015-06-02 03:47:22 UTC
  • mfrom: (968 origin/trunk)
  • mto: This revision was merged to the branch mainline in revision 976.
  • Revision ID: nate.finch@canonical.com-20150602034722-cr3lzq2yb6xdh7gz
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
2
set -eux
3
3
 
 
4
: ${SCRIPTS=$(readlink -f $(dirname $0))}
4
5
BUILD_PACKAGES=${BUILD_PACKAGES:-true}
5
6
BUILD_i386=${BUILD_i386:-true}
6
7
TARFILE=$($SCRIPTS/jujuci.py get build-revision 'juju-core_*.tar.gz' ./)
80
81
done
81
82
fi
82
83
 
 
84
# These agents are built while the debs are built. This is safe to do because
 
85
# the debs take 45 minutes. When this script is dismantled, the job
 
86
# that publishes the revision will require build-centos, build-win-agen,
 
87
# and the new build-packages job.
 
88
$SCRIPTS/jujuci.py get -b lastBuild \
 
89
    build-centos juju-*centos7-amd64.tgz $WORKSPACE
 
90
WIN2012=$($SCRIPTS/jujuci.py get -b lastBuild \
 
91
    build-win-agent juju-*win2012-amd64.tgz $WORKSPACE)
 
92
WIN2012R2=$(echo $WIN2012 | sed -e 's,win2012-,win2012r2-,')
 
93
cp $WIN2012 $WIN2012R2
 
94
 
83
95
$RELEASE_TOOLS/assemble-streams.bash -n -t $WORKSPACE/ testing $VERSION $STREAMS
84
96
PUBLISH_ARGS="testing $STREAMS/juju-dist cpc"
85
97
$RELEASE_TOOLS/publish-public-tools.bash $PUBLISH_ARGS || \