summaryrefslogtreecommitdiffstats
path: root/jjb/sandbox/sandbox-verify-jobs.yml
diff options
context:
space:
mode:
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-07-07 13:43:15 +0200
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>2016-07-07 22:04:19 +0200
commit43826ac925baab281a77e76f917bcadb978c9a52 (patch)
treecb67fb26beede406d23cf34669be93b45caa0f36 /jjb/sandbox/sandbox-verify-jobs.yml
parentd893d399ca57337e2095338bd48cb891f0b21940 (diff)
sandbox: Pass GERRIT parameters and create merge jobs
Change-Id: Idf4f87043929ab1c0e97a60899a116c745386a96 Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Diffstat (limited to 'jjb/sandbox/sandbox-verify-jobs.yml')
-rw-r--r--jjb/sandbox/sandbox-verify-jobs.yml159
1 files changed, 32 insertions, 127 deletions
diff --git a/jjb/sandbox/sandbox-verify-jobs.yml b/jjb/sandbox/sandbox-verify-jobs.yml
index b1e8e93cd..0572440a7 100644
--- a/jjb/sandbox/sandbox-verify-jobs.yml
+++ b/jjb/sandbox/sandbox-verify-jobs.yml
@@ -64,19 +64,39 @@
builders:
- description-setter:
- description: "POD: $NODE_NAME"
+ 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
- job-template:
@@ -106,7 +126,7 @@
builders:
- description-setter:
- description: "POD: $NODE_NAME"
+ description: "Built on $NODE_NAME"
- '{project}-verify-{activity}-builder'
#####################################
@@ -137,144 +157,29 @@
- builder:
name: 'sandbox-verify-builder'
builders:
- - shell: |
- #!/bin/bash
-
- # this is the builder for the parent/upstream job which we do nothing
- cd $WORKSPACE
- echo
- echo "Commit Message is"
- echo "-------------------------------------"
- echo $GERRIT_CHANGE_COMMIT_MESSAGE
- 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 "-------------------------------------"
+ - shell:
+ !include-raw: ./verify.sh
- builder:
name: 'sandbox-verify-basic-builder'
builders:
- - shell: |
- #!/bin/bash
-
- # this is where we check the commit message, unit test, etc.
- cd $WORKSPACE
- echo
- echo "Commit Message is"
- echo "-------------------------------------"
- echo $GERRIT_CHANGE_COMMIT_MESSAGE
- 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 "-------------------------------------"
+ - shell:
+ !include-raw: ./basic.sh
- builder:
name: 'sandbox-verify-build-builder'
builders:
- - shell: |
- #!/bin/bash
-
- # this is where we do the build
- cd $WORKSPACE
- echo
- echo "Commit Message is"
- echo "-------------------------------------"
- echo $GERRIT_CHANGE_COMMIT_MESSAGE
- 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 "-------------------------------------"
+ - shell:
+ !include-raw: ./build.sh
- builder:
name: 'sandbox-verify-deploy-builder'
builders:
- - shell: |
- #!/bin/bash
-
- # this is where we start the virtual deployment
- cd $WORKSPACE
- echo
- echo "Commit Message is"
- echo "-------------------------------------"
- echo $GERRIT_CHANGE_COMMIT_MESSAGE
- 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 "-------------------------------------"
+ - shell:
+ !include-raw: ./deploy.sh
- builder:
name: 'sandbox-verify-test-builder'
builders:
- - shell: |
- #!/bin/bash
-
- # this is where we do functest smoketest
- cd $WORKSPACE
- echo
- echo "Commit Message is"
- echo "-------------------------------------"
- echo $GERRIT_CHANGE_COMMIT_MESSAGE
- 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 "-------------------------------------"
+ - shell:
+ !include-raw: ./test.sh