summaryrefslogtreecommitdiffstats
path: root/jjb
diff options
context:
space:
mode:
Diffstat (limited to 'jjb')
-rw-r--r--jjb/compass4nfv/compass-upload-artifact.sh21
-rw-r--r--jjb/fastpathmetrics/fastpathmetrics.yml3
-rw-r--r--jjb/multisite/multisite.yml122
-rw-r--r--jjb/opnfv/slave-params.yml18
-rw-r--r--jjb/qtip/qtip-ci-jobs.yml2
-rw-r--r--jjb/releng-macros.yaml4
-rwxr-xr-xjjb/sandbox/basic.sh2
-rwxr-xr-xjjb/sandbox/build.sh2
-rwxr-xr-xjjb/sandbox/deploy.sh2
-rw-r--r--jjb/sandbox/sandbox-verify-jobs.yml225
-rwxr-xr-xjjb/sandbox/test.sh2
-rwxr-xr-xjjb/sandbox/verify.sh29
-rw-r--r--jjb/yardstick/yardstick-project-jobs.yml4
13 files changed, 310 insertions, 126 deletions
diff --git a/jjb/compass4nfv/compass-upload-artifact.sh b/jjb/compass4nfv/compass-upload-artifact.sh
index 34b1db98c..73b7f07fa 100644
--- a/jjb/compass4nfv/compass-upload-artifact.sh
+++ b/jjb/compass4nfv/compass-upload-artifact.sh
@@ -10,6 +10,27 @@ echo
# source the opnfv.properties to get ARTIFACT_VERSION
source $BUILD_DIRECTORY/opnfv.properties
+# clone releng repository
+echo "Cloning releng repository..."
+[ -d releng ] && rm -rf releng
+git clone https://gerrit.opnfv.org/gerrit/releng $WORKSPACE/releng/ &> /dev/null
+#this is where we import the siging key
+if [ -f $WORKSPACE/releng/utils/gpg_import_key.sh ]; then
+ source $WORKSPACE/releng/utils/gpg_import_key.sh
+fi
+
+signiso () {
+time gpg2 -vvv --batch --yes --no-tty \
+ --default-key opnfv-helpdesk@rt.linuxfoundation.org \
+ --passphrase besteffort \
+ --detach-sig $BUILD_DIRECTORY/compass.iso
+
+gsutil cp $BUILD_DIRECTORY/compass.iso.sig gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso.sig
+echo "ISO signature Upload Complete!"
+}
+
+signiso
+
# upload artifact and additional files to google storage
gsutil cp $BUILD_DIRECTORY/compass.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1
gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1
diff --git a/jjb/fastpathmetrics/fastpathmetrics.yml b/jjb/fastpathmetrics/fastpathmetrics.yml
index ad1b601da..40549e3c5 100644
--- a/jjb/fastpathmetrics/fastpathmetrics.yml
+++ b/jjb/fastpathmetrics/fastpathmetrics.yml
@@ -151,8 +151,7 @@
choosing-strategy: 'default'
triggers:
- - pollscm:
- cron: '@midnight'
+ - timed: '@midnight'
builders:
- shell: |
diff --git a/jjb/multisite/multisite.yml b/jjb/multisite/multisite.yml
new file mode 100644
index 000000000..f92a4c1bf
--- /dev/null
+++ b/jjb/multisite/multisite.yml
@@ -0,0 +1,122 @@
+###################################################
+# All the jobs except verify have been removed!
+# They will only be enabled on request by projects!
+###################################################
+- project:
+ name: multisite
+
+ project: '{name}'
+
+ jobs:
+ - 'multisite-verify-{stream}'
+ - 'multisite-kingbird-daily-{stream}'
+
+ stream:
+ - master:
+ branch: '{stream}'
+ gs-pathname: ''
+ disabled: false
+
+- job-template:
+ name: 'multisite-verify-{stream}'
+
+ disabled: '{obj:disabled}'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - 'opnfv-build-ubuntu-defaults'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: '$GERRIT_REFSPEC'
+ choosing-strategy: 'gerrit'
+
+ triggers:
+ - gerrit:
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'false'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: 'recheck'
+ - comment-added-contains-event:
+ comment-contains-value: 'reverify'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ forbidden-file-paths:
+ - compare-type: ANT
+ pattern: 'docs/**|.gitignore'
+
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ echo "Hello World"
+
+- job-template:
+ name: 'multisite-kingbird-daily-{stream}'
+
+ project-type: freestyle
+
+ disabled: '{obj:disabled}'
+
+ concurrent: true
+
+ properties:
+ - throttle:
+ enabled: true
+ max-total: 3
+ max-per-node: 2
+ option: 'project'
+
+ parameters:
+ - project-parameter:
+ project: '{project}'
+ - gerrit-parameter:
+ branch: '{branch}'
+ - string:
+ name: KINGBIRD_LOG_FILE
+ default: $WORKSPACE/kingbird.log
+ - 'intel-virtual6-defaults'
+
+ scm:
+ - gerrit-trigger-scm:
+ credentials-id: '{ssh-credentials}'
+ refspec: ''
+ choosing-strategy: 'default'
+
+ triggers:
+ - timed: '@midnight'
+
+ builders:
+ - 'multisite-kingbird-deploy'
+ - 'multisite-kingbird-log-upload'
+########################
+# builder macros
+########################
+- builder:
+ name: 'multisite-kingbird-deploy'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ $WORKSPACE/tools/kingbird/deploy.sh
+- builder:
+ name: 'multisite-kingbird-log-upload'
+ builders:
+ - shell: |
+ #!/bin/bash
+
+ echo "Here is where we upload kingbird logs to artifact repo"
+ echo "We just check the existence of log file"
+ ls -al $KINGBIRD_LOG_FILE
diff --git a/jjb/opnfv/slave-params.yml b/jjb/opnfv/slave-params.yml
index b7ecfde29..7b9983060 100644
--- a/jjb/opnfv/slave-params.yml
+++ b/jjb/opnfv/slave-params.yml
@@ -474,6 +474,20 @@
name: LAB_CONFIG_URL
default: ssh://git@git.enea.com/pharos/lab-config
description: 'Base URI to the configuration directory'
+- parameter:
+ name: 'intel-virtual6-defaults'
+ parameters:
+ - node:
+ name: SLAVE_NAME
+ description: 'Slave name on Jenkins'
+ allowed-slaves:
+ - intel-virtual6
+ default-slaves:
+ - intel-virtual6
+ - string:
+ name: GIT_BASE
+ default: https://gerrit.opnfv.org/gerrit/$PROJECT
+ description: 'Git URL to use on this Jenkins Slave'
#####################################################
# These slaves are just dummy slaves for sandbox jobs
#####################################################
@@ -497,7 +511,7 @@
parameters:
- label:
name: SLAVE_LABEL
- default: 'sandbox-virtual-defaults'
+ default: 'sandbox-virtual'
description: 'Slave label on Jenkins'
- string:
name: GIT_BASE
@@ -512,7 +526,7 @@
parameters:
- label:
name: SLAVE_LABEL
- default: 'dummy-pod1-defaults'
+ default: 'dummy-pod1'
description: 'Slave label on Jenkins'
- string:
name: GIT_BASE
diff --git a/jjb/qtip/qtip-ci-jobs.yml b/jjb/qtip/qtip-ci-jobs.yml
index 6e9a20de5..36f026d7c 100644
--- a/jjb/qtip/qtip-ci-jobs.yml
+++ b/jjb/qtip/qtip-ci-jobs.yml
@@ -81,7 +81,7 @@
publishers:
- email:
- recipients: nauman.ahad@xflowresearch.com, mofassir.arif@xflowresearch.com, vikram@nvirters.com
+ recipients: nauman.ahad@xflowresearch.com, mofassir.arif@xflowresearch.com, vikram@nvirters.com, zhang.yujunz@zte.com.cn
###########################
#biuilder macros
diff --git a/jjb/releng-macros.yaml b/jjb/releng-macros.yaml
index 631a33f41..7733abac4 100644
--- a/jjb/releng-macros.yaml
+++ b/jjb/releng-macros.yaml
@@ -178,8 +178,8 @@
set -o errexit
set -o xtrace
export PATH=$PATH:/usr/local/bin/
- git clone ssh://gerrit.opnfv.org:29418/releng
- GERRIT_COMMENT=gerrit_comment.txt ./releng/utils/docs-build.sh
+ git clone ssh://gerrit.opnfv.org:29418/opnfvdocs docs_build/_opnfvdocs
+ GERRIT_COMMENT=gerrit_comment.txt ./docs_build/_opnfvdocs/scripts/docs-build.sh
- builder:
name: upload-under-review-docs-to-opnfv-artifacts
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 "-------------------------------------"
diff --git a/jjb/yardstick/yardstick-project-jobs.yml b/jjb/yardstick/yardstick-project-jobs.yml
index 5973fcec4..7656c920e 100644
--- a/jjb/yardstick/yardstick-project-jobs.yml
+++ b/jjb/yardstick/yardstick-project-jobs.yml
@@ -133,7 +133,7 @@
sphinx-apidoc -o docs/apidocs yardstick
# build docs
- git clone ssh://gerrit.opnfv.org:29418/releng
- GERRIT_COMMENT=gerrit_comment.txt ./releng/utils/docs-build.sh
+ git clone ssh://gerrit.opnfv.org:29418/opnfvdocs docs_build/_opnfvdocs
+ GERRIT_COMMENT=gerrit_comment.txt ./docs_build/_opnfvdocs/scripts/docs-build.sh
deactivate