diff options
Diffstat (limited to 'jjb/sandbox')
-rwxr-xr-x | jjb/sandbox/basic.sh | 2 | ||||
-rwxr-xr-x | jjb/sandbox/build.sh | 2 | ||||
-rwxr-xr-x | jjb/sandbox/deploy.sh | 2 | ||||
-rw-r--r-- | jjb/sandbox/sandbox-verify-jobs.yml | 225 | ||||
-rwxr-xr-x | jjb/sandbox/test.sh | 2 | ||||
-rwxr-xr-x | jjb/sandbox/verify.sh | 29 |
6 files changed, 145 insertions, 117 deletions
diff --git a/jjb/sandbox/basic.sh b/jjb/sandbox/basic.sh index 2f9be2729..33268558c 100755 --- a/jjb/sandbox/basic.sh +++ b/jjb/sandbox/basic.sh @@ -59,3 +59,5 @@ echo "git show" echo "-------------------------------------" git show echo "-------------------------------------" + +sleep 60 diff --git a/jjb/sandbox/build.sh b/jjb/sandbox/build.sh index 2f9be2729..33268558c 100755 --- a/jjb/sandbox/build.sh +++ b/jjb/sandbox/build.sh @@ -59,3 +59,5 @@ echo "git show" echo "-------------------------------------" git show echo "-------------------------------------" + +sleep 60 diff --git a/jjb/sandbox/deploy.sh b/jjb/sandbox/deploy.sh index 2f9be2729..33268558c 100755 --- a/jjb/sandbox/deploy.sh +++ b/jjb/sandbox/deploy.sh @@ -59,3 +59,5 @@ echo "git show" echo "-------------------------------------" git show echo "-------------------------------------" + +sleep 60 diff --git a/jjb/sandbox/sandbox-verify-jobs.yml b/jjb/sandbox/sandbox-verify-jobs.yml index a899193d7..e0bc2183f 100644 --- a/jjb/sandbox/sandbox-verify-jobs.yml +++ b/jjb/sandbox/sandbox-verify-jobs.yml @@ -4,32 +4,66 @@ project: 'sandbox' installer: 'sandbox' - +##################################### +# branch definitions +##################################### stream: - master: branch: '{stream}' gs-pathname: '' - -# what are the verification activities we do for this installer - activity: - - 'basic' - - 'build' - - 'deploy' - - 'test' - + disabled: false + - colorado: + branch: 'stable/{stream}' + gs-pathname: '/{stream}' + disabled: true +##################################### +# patch verification phases +##################################### + phase: + - 'basic': + slave-label: 'opnfv-build-ubuntu' + - 'build': + slave-label: 'opnfv-build-ubuntu' + - 'deploy-virtual': + slave-label: 'sandbox-virtual' + - 'smoke-test': + slave-label: 'sandbox-virtual' +##################################### +# jobs +##################################### jobs: - 'sandbox-verify-{stream}' - - 'sandbox-verify-{activity}-{stream}' - + - 'sandbox-verify-{phase}-{stream}' +##################################### +# job templates +##################################### - job-template: name: 'sandbox-verify-{stream}' - parameters: - - project-parameter: - project: '{project}' - - gerrit-parameter: - branch: '{branch}' - - 'opnfv-build-ubuntu-defaults' + project-type: multijob + + disabled: '{obj:disabled}' + + concurrent: true + + properties: + - throttle: + enabled: true + max-total: 2 + max-per-node: 1 + option: 'project' + - build-blocker: + use-build-blocker: true + blocking-jobs: + - 'sandbox-verify-master' + - 'sandbox-verify-colorado' + block-level: 'NODE' + + scm: + - gerrit-trigger-scm: + credentials-id: '{ssh-credentials}' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' wrappers: - ssh-agent-credentials: @@ -62,45 +96,90 @@ pattern: 'docs/**|.gitignore' readable-message: true + parameters: + - project-parameter: + project: '{project}' + - gerrit-parameter: + branch: '{branch}' + - 'sandbox-virtual-defaults' + builders: - description-setter: description: "Built on $NODE_NAME" - - '{project}-verify-builder' - - trigger-builds: - - project: 'sandbox-verify-basic-{stream}' - current-parameters: false - predefined-parameters: | - GERRIT_BRANCH=$GERRIT_BRANCH - GERRIT_REFSPEC=$GERRIT_REFSPEC - GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER - block: true - - trigger-builds: - - project: 'sandbox-verify-build-{stream}' - current-parameters: false - predefined-parameters: | - GERRIT_BRANCH=$GERRIT_BRANCH - GERRIT_REFSPEC=$GERRIT_REFSPEC - GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER - block: true - - trigger-builds: - - project: 'sandbox-verify-deploy-{stream}' - current-parameters: false - predefined-parameters: | - GERRIT_BRANCH=$GERRIT_BRANCH - GERRIT_REFSPEC=$GERRIT_REFSPEC - GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER - block: true - - trigger-builds: - - project: 'sandbox-verify-test-{stream}' - current-parameters: false - predefined-parameters: | - GERRIT_BRANCH=$GERRIT_BRANCH - GERRIT_REFSPEC=$GERRIT_REFSPEC - GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER - block: true + - multijob: + name: basic + condition: SUCCESSFUL + projects: + - name: 'sandbox-verify-basic-{stream}' + current-parameters: false + predefined-parameters: | + GERRIT_BRANCH=$GERRIT_BRANCH + GERRIT_REFSPEC=$GERRIT_REFSPEC + GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER + GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE + kill-phase-on: FAILURE + abort-all-job: true + - multijob: + name: build + condition: SUCCESSFUL + projects: + - name: 'sandbox-verify-build-{stream}' + current-parameters: false + predefined-parameters: | + GERRIT_BRANCH=$GERRIT_BRANCH + GERRIT_REFSPEC=$GERRIT_REFSPEC + GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER + GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE + kill-phase-on: FAILURE + abort-all-job: true + - multijob: + name: deploy-virtual + condition: SUCCESSFUL + projects: + - name: 'sandbox-verify-deploy-virtual-{stream}' + current-parameters: false + predefined-parameters: | + GERRIT_BRANCH=$GERRIT_BRANCH + GERRIT_REFSPEC=$GERRIT_REFSPEC + GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER + GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE + node-parameters: true + kill-phase-on: FAILURE + abort-all-job: true + - multijob: + name: smoke-test + condition: SUCCESSFUL + projects: + - name: 'sandbox-verify-smoke-test-{stream}' + current-parameters: false + predefined-parameters: | + GERRIT_BRANCH=$GERRIT_BRANCH + GERRIT_REFSPEC=$GERRIT_REFSPEC + GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER + GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE + node-parameters: true + kill-phase-on: FAILURE + abort-all-job: true - job-template: - name: 'sandbox-verify-{activity}-{stream}' + name: 'sandbox-verify-{phase}-{stream}' + + disabled: '{obj:disabled}' + + concurrent: true + + properties: + - throttle: + enabled: true + max-total: 2 + max-per-node: 1 + option: 'project' + - build-blocker: + use-build-blocker: true + blocking-jobs: + - 'sandbox-verify-deploy-.*' + - 'sandbox-verify-test-.*' + block-level: 'NODE' scm: - gerrit-trigger-scm: @@ -115,71 +194,41 @@ - timeout: timeout: 360 fail: true - parameters: - project-parameter: project: '{project}' - gerrit-parameter: branch: '{branch}' - '{installer}-defaults' - - '{project}-verify-{activity}-parameter' + - '{slave-label}-defaults' builders: - description-setter: description: "Built on $NODE_NAME" - - '{project}-verify-{activity}-builder' - + - '{project}-verify-{phase}-macro' ##################################### -# parameter builders +# builder macros ##################################### -- parameter: - name: 'sandbox-verify-basic-parameter' - parameters: - - 'opnfv-build-ubuntu-defaults' - -- parameter: - name: 'sandbox-verify-build-parameter' - parameters: - - 'opnfv-build-ubuntu-defaults' - -- parameter: - name: 'sandbox-verify-deploy-parameter' - parameters: - - 'opnfv-build-centos-defaults' - -- parameter: - name: 'sandbox-verify-test-parameter' - parameters: - - 'opnfv-build-centos-defaults' -##################################### -# builder builders -##################################### -- builder: - name: 'sandbox-verify-builder' - builders: - - shell: - !include-raw: ./verify.sh - - builder: - name: 'sandbox-verify-basic-builder' + name: 'sandbox-verify-basic-macro' builders: - shell: !include-raw: ./basic.sh - builder: - name: 'sandbox-verify-build-builder' + name: 'sandbox-verify-build-macro' builders: - shell: !include-raw: ./build.sh - builder: - name: 'sandbox-verify-deploy-builder' + name: 'sandbox-verify-deploy-virtual-macro' builders: - shell: !include-raw: ./deploy.sh - builder: - name: 'sandbox-verify-test-builder' + name: 'sandbox-verify-smoke-test-macro' builders: - shell: !include-raw: ./test.sh diff --git a/jjb/sandbox/test.sh b/jjb/sandbox/test.sh index 2f9be2729..33268558c 100755 --- a/jjb/sandbox/test.sh +++ b/jjb/sandbox/test.sh @@ -59,3 +59,5 @@ echo "git show" echo "-------------------------------------" git show echo "-------------------------------------" + +sleep 60 diff --git a/jjb/sandbox/verify.sh b/jjb/sandbox/verify.sh deleted file mode 100755 index f62d2b977..000000000 --- a/jjb/sandbox/verify.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# this is where we check the commit message, unit test, etc. -cd $WORKSPACE -echo -echo "Commit Message is" -echo "-------------------------------------" -git log --format=%B -n 1 $(git rev-parse HEAD) -echo "-------------------------------------" -echo -echo "Repo contents" -echo "-------------------------------------" -ls -al -echo "-------------------------------------" -echo -echo "Changed files are" -echo "-------------------------------------" -git diff origin/master --name-only -echo "-------------------------------------" -echo -echo "Change introduced" -echo "-------------------------------------" -git diff origin/master -echo "-------------------------------------" -echo -echo "git show" -echo "-------------------------------------" -git show -echo "-------------------------------------" |