diff options
-rw-r--r-- | docs/etc/opnfv-logo.png (renamed from docs/jenkins-job-builder/opnfv-logo.png) | bin | 2829 -> 2829 bytes | |||
-rw-r--r-- | docs/how-to-use-docs/documentation-example.rst | 86 | ||||
-rw-r--r-- | docs/how-to-use-docs/index.rst | 30 | ||||
-rw-r--r-- | docs/jenkins-job-builder/index.rst | 5 | ||||
-rw-r--r-- | docs/jenkins-job-builder/opnfv-jjb-usage.rst | 5 | ||||
-rw-r--r-- | jjb/compass4nfv/compass4nfv.yml | 109 | ||||
-rw-r--r-- | jjb/functest/functest.yml | 9 | ||||
-rw-r--r-- | jjb/genesis/genesis-docs.yml | 32 | ||||
-rw-r--r-- | jjb/genesis/genesis-foreman.yml | 64 | ||||
-rw-r--r-- | jjb/genesis/genesis-fuel.yml | 66 | ||||
-rw-r--r-- | jjb/opnfv/opnfv-docs.yml (renamed from jjb/releng/releng.yml) | 56 | ||||
-rw-r--r-- | jjb/releng-jobs.yaml | 2 | ||||
-rw-r--r-- | jjb/yardstick/yardstick.yml | 4 | ||||
-rwxr-xr-x | utils/docu-build-new.sh (renamed from jjb/releng/docu-build-new.sh) | 0 |
14 files changed, 327 insertions, 141 deletions
diff --git a/docs/jenkins-job-builder/opnfv-logo.png b/docs/etc/opnfv-logo.png Binary files differindex 1519503eb..1519503eb 100644 --- a/docs/jenkins-job-builder/opnfv-logo.png +++ b/docs/etc/opnfv-logo.png diff --git a/docs/how-to-use-docs/documentation-example.rst b/docs/how-to-use-docs/documentation-example.rst new file mode 100644 index 000000000..afcf75814 --- /dev/null +++ b/docs/how-to-use-docs/documentation-example.rst @@ -0,0 +1,86 @@ +.. two dots create a comment. please leave this logo at the top of each of your rst files. +.. image:: ../etc/opnfv-logo.png + :height: 40 + :width: 200 + :alt: OPNFV + :align: left +.. these two pipes are to seperate the logo from the first title +| +| +How to create documentation for your OPNFV project +================================================== + +this is the directory structure of the docs/ directory that can be found in the root of your project directory + +.. code-block:: bash + + ./etc + ./etc/opnfv-logo.png + ./etc/conf.py + ./how-to-use-docs + ./how-to-use-docs/documentation-example.rst + ./how-to-use-docs/index.rst + +To create your own documentation, Create any number of directories (depending on your need) and place in each of them an index.rst. +This index file must refence your other rst files. + +* Here is an example index.rst + +.. code-block:: bash + + Example Documentation table of contents + ======================================= + + Contents: + + .. toctree:: + :numbered: + :maxdepth: 4 + + documentation-example.rst + + Indices and tables + ================== + + * :ref:`search` + + Revision: _sha1_ + + Build date: |today| + + +The Sphinx Build +================ + +When you push documentation changes to gerrit a jenkins job will create html documentation. + +* Verify Jobs +For verify jobs a link to the documentation will show up as a comment in gerrit for you to see the result. + +* Merge jobs + +Once you are happy with the look of your documentation you can submit the patchset the merge job will +copy the output of each documentation directory to http://artifacts.opnfv.org/$project/docs/$name_of_your_folder/index.html + +Here are some quick examples of how to use rst markup + +This is a headline:: + + here is some code, note that it is indented + +links are easy to add: Here is a link to sphinx, the tool that we are using to generate documetation http://sphinx-doc.org/ + +* Bulleted Items + + **this will be bold** + +.. code-block:: bash + + echo "Heres is a code block with bash syntax highlighting" + + +Leave these at the bottom of each of your documents they are used internally + +Revision: _sha1_ + +Build date: |today| diff --git a/docs/how-to-use-docs/index.rst b/docs/how-to-use-docs/index.rst new file mode 100644 index 000000000..36710b32d --- /dev/null +++ b/docs/how-to-use-docs/index.rst @@ -0,0 +1,30 @@ +.. OPNFV Release Engineering documentation, created by + sphinx-quickstart on Tue Jun 9 19:12:31 2015. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +.. image:: ../etc/opnfv-logo.png + :height: 40 + :width: 200 + :alt: OPNFV + :align: left + +Example Documentation table of contents +======================================= + +Contents: + +.. toctree:: + :numbered: + :maxdepth: 4 + + documentation-example.rst + +Indices and tables +================== + +* :ref:`search` + +Revision: _sha1_ + +Build date: |today| diff --git a/docs/jenkins-job-builder/index.rst b/docs/jenkins-job-builder/index.rst index 8c51a290c..1ea4a95a5 100644 --- a/docs/jenkins-job-builder/index.rst +++ b/docs/jenkins-job-builder/index.rst @@ -3,12 +3,15 @@ You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. -.. image:: opnfv-logo.png +.. image:: ../etc/opnfv-logo.png :height: 40 :width: 200 :alt: OPNFV :align: left +| +| + Release Engineering Project =========================== diff --git a/docs/jenkins-job-builder/opnfv-jjb-usage.rst b/docs/jenkins-job-builder/opnfv-jjb-usage.rst index c640cc339..8e4a1a831 100644 --- a/docs/jenkins-job-builder/opnfv-jjb-usage.rst +++ b/docs/jenkins-job-builder/opnfv-jjb-usage.rst @@ -1,9 +1,12 @@ -.. image:: opnfv-logo.png +.. image:: ../etc/opnfv-logo.png :height: 40 :width: 200 :alt: OPNFV :align: left +| +| + Creating/Configuring/Verifying Jenkins Jobs ============================================ diff --git a/jjb/compass4nfv/compass4nfv.yml b/jjb/compass4nfv/compass4nfv.yml index e56c26292..468c06252 100644 --- a/jjb/compass4nfv/compass4nfv.yml +++ b/jjb/compass4nfv/compass4nfv.yml @@ -8,7 +8,6 @@ jobs: - 'compass-verify' - 'compass-verify-on-ericsson-node' - - 'compass-upload-iso' - 'compass-merge' - 'compass-daily-{stream}' - 'compass-build' @@ -36,33 +35,6 @@ # job templates ######################## - job-template: - name: 'compass-upload-iso' - project-type: freestyle - disabled: false - - node: master - - logrotate: - daysToKeep: 30 - numToKeep: 10 - artifactDaysToKeep: -1 - artifactNumToKeep: -1 - - parameters: - - project-parameter: - project: '{project}' - - compass-parameter: - installer: '{installer}' - - wrappers: - - ssh-agent-credentials: - user: '{ssh-credentials}' - - builders: - - 'compass-copy-artifact-from-upstream-build' - - 'compass-upload-artifact' - -- job-template: name: 'compass-verify-on-ericsson-node' project-type: freestyle @@ -116,6 +88,7 @@ builders: - 'compass-build' + - 'compass-workspace-cleanup' - job-template: name: 'compass-verify' @@ -200,6 +173,7 @@ branch: 'master' - compass-parameter: installer: '{installer}' + scm: - gerrit-trigger-scm: credentials-id: '{ssh-credentials}' @@ -274,7 +248,7 @@ project-type: freestyle - node: huawei-build + node: ericsson-build logrotate: daysToKeep: 30 @@ -296,17 +270,9 @@ builders: - 'compass-build' + - 'compass-upload-artifact' - 'compass-workspace-cleanup' - publishers: - - archive: - artifacts: '$BUILD_DIRECTORY/*.*' - allow-empty: 'true' - fingerprint: true - - trigger: - project: 'compass-upload-iso' - threshold: SUCCESS - - job-template: name: 'compass-deploy-virtual-{flavor}' @@ -337,7 +303,7 @@ builders: - 'compass-ci-preclean-workspace' - - 'compass-download-artifact-from-internal-repo' + - 'compass-download-artifact' - 'compass-deploy-virtual-flavor' ######################## @@ -352,11 +318,11 @@ description: "Installer to use." - string: name: BUILD_DIRECTORY - default: build_output + default: $WORKSPACE/build_output description: "Directory where the build artifact will be located upon the completion of the build." - string: name: CACHE_DIRECTORY - default: $HOME/opnfv/cache/ + default: $HOME/opnfv/cache/$PROJECT description: "Directory where the cache to be used during the build is located." - string: name: GIT_BASE @@ -364,33 +330,22 @@ description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW." - string: name: GS_URL - default: artifacts.opnfv.org/$PROJECT/$INSTALLER + default: artifacts.opnfv.org/$PROJECT/ description: "URL to Google Storage." - string: + name: GS_URL_PROXY + default: build.opnfv.org/artifacts/$PROJECT/ + description: "URL to Google Storage proxy" + - string: name: INTERNAL_REPO_XA default: "root@192.168.127.11:~/xh/work/build/work" description: "Artifact Repository" - - string: - name: ISO_DIRECTORY - default: "http://192.168.127.11:9999/" + ######################## # builder macros ######################## - builder: - name: compass-copy-artifact-from-upstream-build - builders: - - copyartifact: - project: "compass-build" - filter: "$BUILD_DIRECTORY/compass.iso, $BUILD_DIRECTORY/opnfv.properties" - target: ./ - which-build: upstream-build - optional: true - flatten: true - parameter-filters: PUBLISH=true - - -- builder: name: compass-merge builders: - shell: | @@ -415,17 +370,17 @@ # create the cache directory if it doesn't exist [[ -d $CACHE_DIRECTORY ]] || mkdir -p $CACHE_DIRECTORY + [[ -d $BUILD_DIRECTORY ]] || mkdir -p $BUILD_DIRECTORY # set OPNFV_ARTIFACT_VERSION export OPNFV_ARTIFACT_VERSION=$(date -u +"%Y-%m-%d_%H-%M-%S") # start the build cd $WORKSPACE/ - mkdir $WORKSPACE/$BUILD_DIRECTORY - ./build.sh --iso-dir $WORKSPACE/$BUILD_DIRECTORY/ --iso-name compass.iso -c $CACHE_DIRECTORY + ./build.sh --iso-dir $BUILD_DIRECTORY/ --iso-name compass.iso -c $CACHE_DIRECTORY # list the build artifacts - ls -al $WORKSPACE/$BUILD_DIRECTORY + ls -al $BUILD_DIRECTORY # save information regarding artifact into file ( @@ -433,15 +388,13 @@ echo "OPNFV_GIT_URL=$(git config --get remote.origin.url)" echo "OPNFV_GIT_SHA1=$(git rev-parse HEAD)" echo "OPNFV_ARTIFACT_URL=$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso" - echo "OPNFV_ARTIFACT_MD5SUM=$(md5sum $WORKSPACE/$BUILD_DIRECTORY/compass.iso | cut -d' ' -f1)" + echo "OPNFV_ARTIFACT_MD5SUM=$(md5sum $BUILD_DIRECTORY/compass.iso | cut -d' ' -f1)" echo "OPNFV_BUILD_URL=$BUILD_URL" - ) > $WORKSPACE/$BUILD_DIRECTORY/opnfv.properties + ) > $BUILD_DIRECTORY/opnfv.properties echo echo "--------------------------------------------------------" echo "Done!" - sudo rm -rf $WORKSPACE/work/ - - builder: name: 'compass-deploy-virtual-flavor' builders: @@ -456,20 +409,13 @@ echo "--------------------------------------------------------" echo - export ISO_URL=$WORKSPACE/$BUILD_DIRECTORY/compass.iso + export ISO_URL=file://$BUILD_DIRECTORY/compass.iso cd $WORKSPACE ./deploy.sh $FLAVOR_CONF echo echo "--------------------------------------------------------" echo "Done!" -- builder: - name: 'compass-download-artifact-from-internal-repo' - builders: - - shell: | - #!/bin/bash - echo "download iso from internal repo" - curl -s -o $WORKSPACE/$BUILD_DIRECTORY/compass.iso $ISO_DIRECTORY/compass.iso > download.iso.log 2>&1 - builder: name: 'compass-upload-artifact' @@ -486,16 +432,13 @@ echo # source the opnfv.properties to get ARTIFACT_VERSION - source $WORKSPACE/$BUILD_DIRECTORY/opnfv.properties - - scp $WORKSPACE/$BUILD_DIRECTORY/compass.iso $INTERNAL_REPO_XA/ - scp $WORKSPACE/$BUILD_DIRECTORY/opnfv.properties $INTERNAL_REPO_XA/ - scp $WORKSPACE/$BUILD_DIRECTORY/compass.iso $INTERNAL_REPO_XA/opnfv-$OPNFV_ARTIFACT_VERSION.iso + source $BUILD_DIRECTORY/opnfv.properties # upload artifact and additional files to google storage - gsutil cp $WORKSPACE/$BUILD_DIRECTORY/compass.iso gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso > gsutil.iso.log 2>&1 - gsutil cp $WORKSPACE/$BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.properties > gsutil.properties.log 2>&1 - gsutil cp $WORKSPACE/$BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/latest.properties > gsutil.latest.log 2>&1 + 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 + gsutil cp $BUILD_DIRECTORY/opnfv.properties gs://$GS_URL/latest.properties > gsutil.latest.log 2>&1 + echo echo "--------------------------------------------------------" @@ -503,7 +446,7 @@ echo "Artifact is available as http://$GS_URL/opnfv-$OPNFV_ARTIFACT_VERSION.iso" - builder: - name: 'compass-download-artifact-from-opnfv-repo' + name: 'compass-download-artifact' builders: - shell: | #!/bin/bash @@ -545,7 +488,7 @@ set -o pipefail # delete everything that is in $WORKSPACE - sudo /bin/rm -rf $WORKSPACE + /bin/rm -rf $WORKSPACE - builder: name: 'compass-ci-preclean-workspace' diff --git a/jjb/functest/functest.yml b/jjb/functest/functest.yml index 3a7b09e09..9e3ff5196 100644 --- a/jjb/functest/functest.yml +++ b/jjb/functest/functest.yml @@ -582,6 +582,11 @@ mkdir -p $HOME/functest/ # source openstack vars + if [ ! -f $HOME/opnfv-openrc.sh ]; then + echo "Credentials file not found in "$HOME/opnfv-openrc.sh + exit 1 + fi + echo "Sourcing the OpenStack credentials in"$HOME/opnfv-openrc.sh source $HOME/opnfv-openrc.sh # WORKSPACE is the root of the functest repo @@ -591,6 +596,10 @@ # prepare echo "Functest: prepare Functest environment" python $WORKSPACE/testcases/config_functest.py --debug $WORKSPACE/ start + if [ $? != 0 ]; then + echo "Error when configuring Functest environment" + exit 1 + fi # vPing echo "Functest: run vPing" diff --git a/jjb/genesis/genesis-docs.yml b/jjb/genesis/genesis-docs.yml index 6fead13d9..e95b97c92 100644 --- a/jjb/genesis/genesis-docs.yml +++ b/jjb/genesis/genesis-docs.yml @@ -59,6 +59,22 @@ branches: - branch-compare-type: 'ANT' branch-pattern: '**/master' + file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '**/docs/**' + forbidden-file-paths: + - compare-type: ANT + pattern: '**/build/**' + - compare-type: ANT + pattern: '**/ci/**' + - compare-type: ANT + pattern: '**/deploy/**' + - compare-type: ANT + pattern: '**/include/**' + - compare-type: ANT + pattern: '**/prototypes/**' builders: - shell: @@ -112,6 +128,22 @@ branches: - branch-compare-type: 'ANT' branch-pattern: '**/master' + file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '**/docs/**' + forbidden-file-paths: + - compare-type: ANT + pattern: '**/build/**' + - compare-type: ANT + pattern: '**/ci/**' + - compare-type: ANT + pattern: '**/deploy/**' + - compare-type: ANT + pattern: '**/include/**' + - compare-type: ANT + pattern: '**/prototypes/**' builders: - shell: diff --git a/jjb/genesis/genesis-foreman.yml b/jjb/genesis/genesis-foreman.yml index 42f0afa96..0fd55ce36 100644 --- a/jjb/genesis/genesis-foreman.yml +++ b/jjb/genesis/genesis-foreman.yml @@ -90,9 +90,24 @@ branch-pattern: '**/{branch}' file-paths: - compare-type: ANT - pattern: 'common/**' + pattern: 'common/ci/**' - compare-type: ANT - pattern: '{installer}/**' + pattern: 'common/manifests/**' + - compare-type: ANT + pattern: 'common/puppet-opnfv/**' + - compare-type: ANT + pattern: 'common/tools/**' + - compare-type: ANT + pattern: '{installer}/build/**' + - compare-type: ANT + pattern: '{installer}/ci/**' + - compare-type: ANT + pattern: '{installer}/include/**' + forbidden-file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '{installer}/docs/**' builders: - 'foreman-build' @@ -146,13 +161,28 @@ - project-compare-type: 'ANT' project-pattern: 'genesis' branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' file-paths: - compare-type: ANT - pattern: 'common/**' + pattern: 'common/ci/**' + - compare-type: ANT + pattern: 'common/manifests/**' + - compare-type: ANT + pattern: 'common/puppet-opnfv/**' + - compare-type: ANT + pattern: 'common/tools/**' - compare-type: ANT - pattern: '{installer}/**' + pattern: '{installer}/build/**' + - compare-type: ANT + pattern: '{installer}/ci/**' + - compare-type: ANT + pattern: '{installer}/include/**' + forbidden-file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '{installer}/docs/**' builders: - 'foreman-build' @@ -425,9 +455,24 @@ branch-pattern: '**/{branch}' file-paths: - compare-type: ANT - pattern: 'common/**' + pattern: 'common/ci/**' + - compare-type: ANT + pattern: 'common/manifests/**' + - compare-type: ANT + pattern: 'common/puppet-opnfv/**' - compare-type: ANT - pattern: '{installer}/**' + pattern: 'common/tools/**' + - compare-type: ANT + pattern: '{installer}/build/**' + - compare-type: ANT + pattern: '{installer}/ci/**' + - compare-type: ANT + pattern: '{installer}/include/**' + forbidden-file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '{installer}/docs/**' dependency-jobs: 'genesis-foreman-verify-build-{stream}' @@ -599,6 +644,9 @@ # cleanup first sudo $WORKSPACE/common/ci/clean.sh -base_config $WORKSPACE/$INSTALLER/ci/inventory/lf_pod2_ksgen_settings.yml + echo "Sleeping for 60 seconds between clean and deploy to allow nodes to power off" + sleep 60 + # and then initiate deployment sudo $WORKSPACE/$INSTALLER/ci/deploy.sh -base_config $WORKSPACE/$INSTALLER/ci/inventory/lf_pod2_ksgen_settings.yml diff --git a/jjb/genesis/genesis-fuel.yml b/jjb/genesis/genesis-fuel.yml index 3fbde0b2b..405fbc0ad 100644 --- a/jjb/genesis/genesis-fuel.yml +++ b/jjb/genesis/genesis-fuel.yml @@ -92,9 +92,28 @@ branch-pattern: '**/{branch}' file-paths: - compare-type: ANT - pattern: 'common/**' + pattern: 'common/ci/**' - compare-type: ANT - pattern: '{installer}/**' + pattern: 'common/manifests/**' + - compare-type: ANT + pattern: 'common/puppet-opnfv/**' + - compare-type: ANT + pattern: 'common/tools/**' + - compare-type: ANT + pattern: '{installer}/build/**' + - compare-type: ANT + pattern: '{installer}/ci/**' + - compare-type: ANT + pattern: '{installer}/deploy/**' + - compare-type: ANT + pattern: '{installer}/include/**' + - compare-type: ANT + pattern: '{installer}/prototypes/**' + forbidden-file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '{installer}/docs/**' builders: - 'fuel-build' @@ -149,13 +168,32 @@ - project-compare-type: 'ANT' project-pattern: 'genesis' branches: - - branch-compare-type: 'ANT' - branch-pattern: '**/{branch}' + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' file-paths: - compare-type: ANT - pattern: 'common/**' + pattern: 'common/ci/**' + - compare-type: ANT + pattern: 'common/manifests/**' - compare-type: ANT - pattern: '{installer}/**' + pattern: 'common/puppet-opnfv/**' + - compare-type: ANT + pattern: 'common/tools/**' + - compare-type: ANT + pattern: '{installer}/build/**' + - compare-type: ANT + pattern: '{installer}/ci/**' + - compare-type: ANT + pattern: '{installer}/deploy/**' + - compare-type: ANT + pattern: '{installer}/include/**' + - compare-type: ANT + pattern: '{installer}/prototypes/**' + forbidden-file-paths: + - compare-type: ANT + pattern: 'common/docs/**' + - compare-type: ANT + pattern: '{installer}/docs/**' builders: - 'fuel-build' @@ -298,6 +336,10 @@ - 'fuel-upload-artifact' - 'fuel-workspace-cleanup' + publishers: + - email: + recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com + - job-template: name: 'genesis-fuel-deploy-{stream}' @@ -334,6 +376,10 @@ - 'fuel-download-artifact' - 'fuel-deploy' + publishers: + - email: + recipients: jonas.bjurel@ericsson.com stefan.k.berg@ericsson.com + - job-template: name: 'genesis-fuel-lab-reconfig-{stream}' @@ -380,7 +426,7 @@ project-type: freestyle - disabled: false + disabled: true node: ericsson-build @@ -501,7 +547,7 @@ chmod a+x $TMPDIR # set CONFDIR, BRIDGE - export CONFDIR=$WORKSPACE/fuel/deploy/baremetal/conf/linux_foundation_lab/pod2/ha + export CONFDIR=$WORKSPACE/fuel/deploy/templates/hardware_environment/old_conf/linux_foundation_lab/pod2/ha export BRIDGE=pxebr # cleanup first @@ -517,8 +563,8 @@ # start the deployment echo "Issuing command" - echo "sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $CONFDIR/dea.yaml $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE" - sudo $WORKSPACE/fuel/ci/deploy.sh $WORKSPACE/opnfv.iso $CONFDIR/dea.yaml $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE + echo "sudo $WORKSPACE/fuel/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE" + sudo $WORKSPACE/fuel/ci/deploy.sh -iso $WORKSPACE/opnfv.iso -dea $CONFDIR/dea.yaml -dha $CONFDIR/dha.yaml -s $TMPDIR -b $BRIDGE echo echo "--------------------------------------------------------" diff --git a/jjb/releng/releng.yml b/jjb/opnfv/opnfv-docs.yml index 87a73c490..4ed6bdeb1 100644 --- a/jjb/releng/releng.yml +++ b/jjb/opnfv/opnfv-docs.yml @@ -1,15 +1,15 @@ ######################## -# Job configuration for releng +# Job configuration for opnfv-docs ######################## - project: - name: releng + name: opnfv-docs - project: 'releng' + project: opnfv-docs jobs: - - 'releng-verify' - - 'releng-merge' + - 'opnfv-docs-verify' + - 'opnfv-docs-merge' # stream: branch with - in place of / (eg. stable-arno) # branch: branch (eg. stable/arno) @@ -22,7 +22,7 @@ ######################## - job-template: - name: 'releng-verify' + name: 'opnfv-docs-verify' node: master @@ -36,7 +36,7 @@ parameters: - project-parameter: - project: '{project}' + project: $GERRIT_PROJECT - gerrit-parameter: branch: 'master' @@ -63,31 +63,22 @@ - comment-added-contains-event: comment-contains-value: 'reverify' projects: - - project-compare-type: 'ANT' - project-pattern: '{project}' + - project-compare-type: 'REG_EXP' +#Left out arno projects oscar|octopus|functest|genesis|pharos|opnfvdocs + project-pattern: 'vswitchperf|yardstick|apex|availability|bottlenecks|compass4nfv|conductor|copper|doctor|dovetail|dpacc|escalator|fastpathmetrics|fuel|inspector|ipv6|joid|kvmfornfv|lsoapi|moon|movie|multisite|onosfw|ovsnfv|parser|prediction|promise|qtip|releng|rs|sfc|vnf_forwarding_graph' branches: - branch-compare-type: 'ANT' branch-pattern: '**/master' file-paths: - compare-type: ANT - pattern: 'utils/**' - - compare-type: ANT pattern: 'docs/**' - forbidden-file-paths: - - compare-type: ANT - pattern: 'jjb/**' builders: - - shell: - !include-raw docu-build-new.sh - + - shell: + !include-raw ../../utils/docu-build-new.sh - job-template: - name: 'releng-merge' - - # builder-merge job to run JJB update - # - # This job's purpose is to update all the JJB + name: 'opnfv-docs-merge' node: master @@ -95,21 +86,21 @@ logrotate: daysToKeep: 30 - numToKeep: 40 + numToKeep: 10 artifactDaysToKeep: -1 - artifactNumToKeep: 5 + artifactNumToKeep: -1 parameters: - project-parameter: - project: '{project}' + project: $GERRIT_PROJECT - gerrit-parameter: branch: 'master' scm: - gerrit-trigger-scm: credentials-id: '{ssh-credentials}' - refspec: '' - choosing-strategy: 'default' + refspec: '$GERRIT_REFSPEC' + choosing-strategy: 'gerrit' wrappers: - ssh-agent-credentials: @@ -122,20 +113,15 @@ - comment-added-contains-event: comment-contains-value: 'remerge' projects: - - project-compare-type: 'ANT' + - project-compare-type: 'REG_EXP' project-pattern: 'releng' branches: - branch-compare-type: 'ANT' branch-pattern: '**/master' file-paths: - compare-type: ANT - pattern: 'utils/**' - - compare-type: ANT pattern: 'docs/**' - forbidden-file-paths: - - compare-type: ANT - pattern: 'jjb/**' builders: - - shell: - !include-raw docu-build-new.sh + - shell: + !include-raw ../../utils/docu-build-new.sh diff --git a/jjb/releng-jobs.yaml b/jjb/releng-jobs.yaml index a2f597b10..d732b1fab 100644 --- a/jjb/releng-jobs.yaml +++ b/jjb/releng-jobs.yaml @@ -57,9 +57,9 @@ pattern: jjb/** - compare-type: ANT pattern: jjb-templates/** - forbidden-file-paths: - compare-type: ANT pattern: utils/** + forbidden-file-paths: - compare-type: ANT pattern: docs/** diff --git a/jjb/yardstick/yardstick.yml b/jjb/yardstick/yardstick.yml index 385099dc7..a9619032f 100644 --- a/jjb/yardstick/yardstick.yml +++ b/jjb/yardstick/yardstick.yml @@ -225,8 +225,8 @@ export OS_IMAGE_API_VERSION=1 # Install required packages. - # 'qemu-nbd' is needed when building the yardstick image. - sudo yum -y install qemu-img + # 'libguestfs-tools' is needed when building the yardstick image. + sudo yum -y install libguestfs-tools # set virtualenv echo "Yardstick: setup virtualenv" diff --git a/jjb/releng/docu-build-new.sh b/utils/docu-build-new.sh index 00d046479..00d046479 100755 --- a/jjb/releng/docu-build-new.sh +++ b/utils/docu-build-new.sh |