Update JJB Sandbox 71/22671/7
authorTrevor Bramwell <tbramwell@linuxfoundation.org>
Mon, 3 Oct 2016 20:36:16 +0000 (13:36 -0700)
committerTrevor Bramwell <tbramwell@linuxfoundation.org>
Tue, 4 Oct 2016 16:25:06 +0000 (09:25 -0700)
- Build status message includes a link back to the sandbox
- The deploy job now includes references to required macros (similar to
  'verify')
- Wrappers are removed by setting 'wrappers' to the empty string. This
  is due to the 'ssh-agent' credentials not being used nor existing on
  the sandbox server.
- Shebang lines have been fixed to remove the space after '#!' causing
  the Java 'Cannot run program' error.
- Jobs are restricted to the 'releng-sandbox' label so they aren't
  triggered on 'master'
- Remove 'utils' directory from triggering builds.
- Sandbox deployment doesn't vote on any builds, this should help should
  the job again somehow run against non-sandbox changes.
- 'releng-clear-sandbox-jobs' replaced with '--delete-old' on update so
  that each patchset submitted will remove any previously deployed jobs.

Change-Id: I4f37dbb0c0becc5760c826950306e9d958a40aaa
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
jjb-sandbox/releng/releng-sandbox-jobs.yml
jjb-sandbox/releng/verify-sandbox-jobs.sh

index ee35f42..aa10a43 100644 (file)
@@ -2,12 +2,13 @@
     name: 'releng-sandbox-jobs'
     jobs:
         - 'releng-deploy-sandbox'
-        - 'releng-clear-jenkins-jobs'
 
     project: 'releng'
+    node: 'releng-sandbox'
 
 - job-template:
     name: 'releng-deploy-sandbox'
+    node: '{node}'
 
     parameters:
         - project-parameter:
                 - draft-published-event
                 - comment-added-contains-event:
                     comment-contains-value: 'redeploy'
+            custom-url: '$BUILD_URL deploying to $JENKINS_URL'
+            silent-start: true
+            skip-vote:
+                successful: true
+                failed: true
+                unstable: true
+                notbuilt: true
             projects:
               - project-compare-type: 'ANT'
                 project-pattern: 'releng'
                 file-paths:
                     - compare-type: ANT
                       pattern: jjb-sandbox/**
-                    - compare-type: ANT
-                      pattern: utils/**
+
+    wrappers: ''
 
     builders:
         - shell:
             !include-raw-escape: verify-sandbox-jobs.sh
         - shell: |
-            #! /bin/bash
-            jenkins-jobs update -jjb-sandbox
+            #!/bin/bash
+            jenkins-jobs update --delete-old -r jjb/releng-defaults.yaml:jjb/releng-macros.yaml:jjb/opnfv/installer-params.yml:jjb/opnfv/slave-params.yml:jjb-sandbox
 
     publishers:
         - archive-artifacts:
             artifacts: 'job_output/*'
-
-- job-template:
-    name: 'releng-clear-jenkins-jobs'
-
-    parameters:
-        - project-parameter:
-            project: '{project}'
-        - gerrit-parameter:
-            branch: 'master'
-
-    scm:
-        - gerrit-trigger-scm:
-            credentials-id: '{ssh-credentials}'
-            refspec: ''
-            choosing-strategy: 'default'
-
-    triggers:
-        - timed: '@weekly'
-
-    builders:
-        - shell: |
-            #! /bin/bash
-            jenkins-jobs delete -r -p jjb-sandbox -x jjb-sandbox/releng
index 8f67e74..5990161 100755 (executable)
@@ -1,4 +1,4 @@
-#! /bin/bash
+#!/bin/bash
 # SPDX-license-identifier: Apache-2.0
 ##############################################################################
 # Copyright (c) 2016 Linux Foundation and others.