3
export JUJU_HOME=${JUJU_HOME:-$HOME/cloud-city}
4
source $JUJU_HOME/juju-qa.jujuci
12
WS_JSON=$WORKSPACE/ws-json
13
AGENT_DIRNAME=revision-build-$revision_build
14
WS_AGENTS=$WORKSPACE/agent/$AGENT_DIRNAME
15
TESTING_AGENTS=$TESTING/agent/$AGENT_DIRNAME
16
VERSION=$(jujuci.py get-build-vars $revision_build --version)
19
for job in $AGENT_JOBS; do
20
s3ci.py get $revision_build $job '.*\.tgz' $WS_AGENTS
21
s3ci.py get $revision_build $job '.*\.json' $WS_JSON
23
set_stream.py $AGENT_JSON/release.json \
24
$WS_JSON/release-$revision_build.json $revision_build
25
mkdir -p $TESTING_AGENTS
26
cp $WS_AGENTS/* $TESTING_AGENTS
27
cp $WS_JSON/*.json $AGENT_JSON/
28
json2streams --juju-format $AGENT_JSON/* $TESTING
29
sstream-query $TESTING/streams/v1/index2.json \
30
content_id="com.ubuntu.juju:revision-build-$revision_build:tools" \
31
version=$VERSION --output-format="%(sha256)s %(item_url)s" |sort|uniq > \
33
sha256sum -c sha256sums