Add skeleton for infra-jjb-verify job 14/114/4
authorFatih Degirmenci <fdegir@gmail.com>
Thu, 18 Oct 2018 13:25:24 +0000 (15:25 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Fri, 19 Oct 2018 11:59:24 +0000 (13:59 +0200)
Change-Id: If25f3ea7888719cb736eee138d6fb14b7fb04acf
Signed-off-by: Fatih Degirmenci <fdegir@gmail.com>
jjb/global/jjb-macros.yaml
jjb/infra/jjb-verify.yaml [new file with mode: 0644]

index cfe19edf2d938fec5c727acb1f0c98ea8bef85af..fecd95547b178dbec377f5aa3e0708344e39e75c 100644 (file)
           name: PROJECT
           default: '{project}'
           description: JJB configured PROJECT parameter to identify a Nordix Gerrit project
+      - string:
+          name: BRANCH
+          default: '{branch}'
+          description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)"
 
 # these parameters are used for streaming changes from various Gerrit Systems
 - parameter:
diff --git a/jjb/infra/jjb-verify.yaml b/jjb/infra/jjb-verify.yaml
new file mode 100644 (file)
index 0000000..c31eb5c
--- /dev/null
@@ -0,0 +1,32 @@
+---
+- project:
+
+    name: infra-jjb-verify
+
+    project: 'infra/cicd'
+
+    stream:
+      - master:
+          branch: '{stream}'
+
+    jobs:
+      - infra-jjb-verify-{stream}
+
+
+- job-template:
+    name: infra-jjb-verify-{stream}
+
+    node: ubuntu1804
+
+    disabled: false
+
+    parameters:
+      - project-parameter:
+          project: '{project}'
+          branch: '{branch}'
+
+    builders:
+      - shell: |
+          #!/bin/bash
+
+          echo "Hello World!"