test lava-tool auth injection 11/8111/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 9 Jan 2017 11:41:42 +0000 (12:41 +0100)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Mon, 9 Jan 2017 11:41:42 +0000 (12:41 +0100)
Change-Id: I23146b574e5f5494a41f08fe9dcd87714ef7e306
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/common/include-agl-run-test-snapshot.sh [new file with mode: 0644]
jjb/test-lava/test-lava.yaml [new file with mode: 0644]

diff --git a/jjb/common/include-agl-run-test-snapshot.sh b/jjb/common/include-agl-run-test-snapshot.sh
new file mode 100644 (file)
index 0000000..c516a8b
--- /dev/null
@@ -0,0 +1,31 @@
+# (c) 2016 Jan-Simon Moeller dl9pf(at)gmx.de
+# License GPLv2
+
+################################################################################
+## Run SHORT CI test
+################################################################################
+
+# test currently only for porter, rest WIP
+echo "## ${MACHINE} ##"
+
+
+echo "default keyring config"
+
+mkdir -p ~/.local/share/python_keyring/
+
+cat <<EOF >  ~/.local/share/python_keyring/keyringrc.cfg
+[backend]
+default-keyring=keyring.backends.file.PlaintextKeyring
+EOF
+
+cat <<EOF > ~/.local/token
+$AGLLAVATOKEN
+EOF
+
+lava-tool auth-add --token-file ~/.local/token https://agl-jenkins-user@porter.automotivelinux.org
+
+cat ~/.local/token
+
+#rm ~/.local/token
+
+# setup 
\ No newline at end of file
diff --git a/jjb/test-lava/test-lava.yaml b/jjb/test-lava/test-lava.yaml
new file mode 100644 (file)
index 0000000..72bd069
--- /dev/null
@@ -0,0 +1,61 @@
+- project:
+    name: test-lava
+    jobs:
+        - test-lava
+
+- job-template:
+    name: 'test-lava'
+    project-type: matrix
+    concurrent: false
+    node: master
+
+    parameters:
+      - string:
+          name: GERRIT_PROJECT
+          default: AGL/AGL-repo
+          description: "Project to build"
+      - string:
+          name: GERRIT_BRANCH
+          default: master
+          description: "branch to build"
+      - string:
+          name: GERRIT_REFSPEC
+          default: refs/heads/master
+          description: "refspec to build"
+    axes:
+      - axis:
+          type: user-defined
+          name: MACHINE
+          values:
+            - raspberrypi3
+      - axis:
+          type: slave
+          name: label
+          values:
+            - master
+
+    build-discarder:
+      days-to-keep: 30
+      num-to-keep: 40
+      artifact-days-to-keep: -1
+      artifact-num-to-keep: 5
+
+#    triggers:
+#      - gerrit-trigger-patch-submitted-silent:
+#            name: 'AGL/AGL-repo'
+#            branch: 'refs/tags/chinook/**'
+
+    wrappers:
+      - agl-infra-wrappers:
+          build-timeout: '{build-timeout}'
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: agl_main_lava_instance
+              username: AGLLAVAUSER
+              password: AGLLAVATOKEN
+
+    builders:
+      - shell:
+            !include-raw-escape:
+                - ../common/include-agl-run-test-snapshot.sh
+