Add job to produce container. 29/7929/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 28 Dec 2016 20:30:11 +0000 (21:30 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Wed, 28 Dec 2016 20:30:11 +0000 (21:30 +0100)
Change-Id: Iff8cdb42d3e4c6bbf8e8ad232f6c3fdab5193163
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/snapshot-jjb-container/.gitignore [new file with mode: 0644]
jjb/snapshot-jjb-container/include-createcontainer.sh [new file with mode: 0644]
jjb/snapshot-jjb-container/include-rsync-container.sh [new file with mode: 0644]
jjb/snapshot-jjb-container/snapshot-jjb-container.yaml [new file with mode: 0644]

diff --git a/jjb/snapshot-jjb-container/.gitignore b/jjb/snapshot-jjb-container/.gitignore
new file mode 100644 (file)
index 0000000..f3b16d5
--- /dev/null
@@ -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 (file)
index 0000000..ff106e3
--- /dev/null
@@ -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 (file)
index 0000000..e2ee1b9
--- /dev/null
@@ -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 (file)
index 0000000..2490fcc
--- /dev/null
@@ -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
+