diff options
4 files changed, 51 insertions, 0 deletions
diff --git a/jjb/snapshot-jjb-container/.gitignore b/jjb/snapshot-jjb-container/.gitignore new file mode 100644 index 00000000..f3b16d50 --- /dev/null +++ b/jjb/snapshot-jjb-container/.gitignore @@ -0,0 +1,3 @@ +repoclone +mirror +sstate diff --git a/jjb/snapshot-jjb-container/include-createcontainer.sh b/jjb/snapshot-jjb-container/include-createcontainer.sh new file mode 100644 index 00000000..ff106e32 --- /dev/null +++ b/jjb/snapshot-jjb-container/include-createcontainer.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +#set -x +set -e +# diff --git a/jjb/snapshot-jjb-container/include-rsync-container.sh b/jjb/snapshot-jjb-container/include-rsync-container.sh new file mode 100644 index 00000000..e2ee1b9a --- /dev/null +++ b/jjb/snapshot-jjb-container/include-rsync-container.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +#set -x +set -e + +#ls -alh + +export RSYNCSRC="$(pwd)/container/" +export RSYNCDST="jenkins-slave@10.30.72.8:/srv/download/AGL/snapshots/sdk/docker/" + +echo " rsync -avr -e \"ssh -o StrictHostKeyChecking=no\" $RSYNCSRC $RSYNCDST " + +exit 0
\ No newline at end of file diff --git a/jjb/snapshot-jjb-container/snapshot-jjb-container.yaml b/jjb/snapshot-jjb-container/snapshot-jjb-container.yaml new file mode 100644 index 00000000..2490fcc3 --- /dev/null +++ b/jjb/snapshot-jjb-container/snapshot-jjb-container.yaml @@ -0,0 +1,30 @@ +- project: + name: snapshot-jjb-container + jobs: + - snapshot-jjb-container-weekly + +- job-template: + name: 'snapshot-jjb-container-weekly' + project-type: freestyle + concurrent: false + node: agl-test-slave + + build-discarder: + days-to-keep: 30 + num-to-keep: 40 + artifact-days-to-keep: -1 + artifact-num-to-keep: 5 + + triggers: + - timed: '@weekly' + + wrappers: + - agl-infra-wrappers: + build-timeout: '{build-timeout}' + + builders: + - shell: + !include-raw-escape: include-createcontainer.sh + - shell: + !include-raw-escape: include-rsync-container.sh + |