From f43698f363f5aa0759e39ef348e3b202cac021c4 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Wed, 28 Dec 2016 21:30:11 +0100 Subject: Add job to produce container. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Iff8cdb42d3e4c6bbf8e8ad232f6c3fdab5193163 Signed-off-by: Jan-Simon Möller --- jjb/snapshot-jjb-container/.gitignore | 3 +++ .../include-createcontainer.sh | 5 ++++ .../include-rsync-container.sh | 13 ++++++++++ .../snapshot-jjb-container.yaml | 30 ++++++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 jjb/snapshot-jjb-container/.gitignore create mode 100644 jjb/snapshot-jjb-container/include-createcontainer.sh create mode 100644 jjb/snapshot-jjb-container/include-rsync-container.sh create mode 100644 jjb/snapshot-jjb-container/snapshot-jjb-container.yaml (limited to 'jjb/snapshot-jjb-container') 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 + -- cgit 1.2.3-korg