aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/snapshot-jjb-container/include-createcontainer.sh
blob: a01ac9f0361b8f546660a64bd12c3539fa2e6465 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash

#set -x
set -e
#

git clone https://gerrit.automotivelinux.org/gerrit/AGL/docker-worker-generator
cd docker-worker-generator/

# dump where we are in jenkins log :)
git log -n 1

# add Jenkins BUILD_ID in image version
FULLVER=$(cat VERSION)-${BUILD_ID}

# override VERSION variable when invoking make to build and export docker image
make VERSION=$FULLVER build
make VERSION=$FULLVER export

ls

echo "###########################"

mkdir -p ../container
mv docker_agl_worker*.tar.xz ../container/

# workaround due to SPEC-979
ln -s $(basename ../container/docker_agl_worker*.tar.xz) ../container/docker_agl_worker-latest.tar.xz

ls ../container

echo "###########################"