X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=docs%2Fjjb%2Flf-ci-jobs.rst;h=19de22d1952401157a28fc1776915ad1acd912a6;hb=2ea5908d7197fd2a895e1992920db2d7cfdf64d7;hp=49fb4678b56e860516a1717a75211e1e547a4fb2;hpb=391e8138f528a720604ed9da7bda949b5e56fbec;p=releng%2Fglobal-jjb.git diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index 49fb4678..19de22d1 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -12,6 +12,7 @@ Recommended jobs that should be deployed for CI using Gerrit. :Includes: + - gerrit-jenkins-cfg-merge - gerrit-jjb-deploy-job - gerrit-jjb-merge - gerrit-jjb-verify @@ -23,6 +24,7 @@ Recommended jobs that should be deployed CI using GitHub. :Includes: + - github-jenkins-cfg-merge - github-jjb-deploy-job - github-jjb-merge - github-jjb-verify @@ -50,6 +52,23 @@ Jobs related to Packer builds for CI using GitHub. Macros ====== +lf-jenkins-cfg-global-vars +-------------------------- + +Manages the Global Jenkins variables. This macro will clear all exist macros +in Jenkins and replaces them with the ones defined by the +ci-management/jenkins-config/global-vars-SILO.sh script. + +.. note:: + + Requires the jjbini file in Jenkins CFP to contain JJB 2.0 style + config definitions for "production" and "sandbox" systems. + +:Required parameters: + + :jenkins-silos: Space separated list of Jenkins silos to update + configuration for as defined in ~/.config/jenkins_jobs/jenkins_jobs.ini + lf-infra-jjbini --------------- @@ -90,6 +109,62 @@ Job submits a patch to lock or unlock a project's branch. - gerrit-branch-lock +Jenkins Configuration Merge +--------------------------- + +Jenkins job to manage Global Jenkins configuration. + +Global Environment Variables are managed via the +``jenkins-config/global-vars-SILO.sh`` file in ci-management. Replace SILO with +the name of the Jenkins silo the variable configuration is for. + +The format for this file is ``KEY=value`` for example:: + + GERRIT_URL=https://git.opendaylight.org/gerrit + GIT_BASE=git://devvexx.opendaylight.org/mirror/$PROJECT + GIT_URL=git://devvexx.opendaylight.org/mirror + JENKINS_HOSTNAME=vex-yul-odl-jenkins-2 + LOGS_SERVER=https://logs.opendaylight.org + NEXUS_URL=https://nexus.opendaylight.org + ODLNEXUSPROXY=https://nexus.opendaylight.org + SILO=sandbox + SONAR_URL=https://sonar.opendaylight.org + +.. note:: + + Requires the jjbini file in Jenkins CFP to contain JJB 2.0 style + config definitions for "production" and "sandbox" systems. + +:Template names: + + - {project-name}-jenkins-cfg-merge + - gerrit-jenkins-cfg-merge + - github-jenkins-cfg-merge + +:Optional parameters: + + :branch: Git branch to build against. (default: master) + :cron: How often to run the job on a cron schedule. (default: @daily) + :git-url: URL to clone project from. (default: $GIT_URL/$GERRIT_PROJECT) + :jenkins-silos: Space separated list of Jenkins silos to update + configuration for as defined in ~/.config/jenkins_jobs/jenkins_jobs.ini + (default: production sandbox) + +Typically this template is automatically pulled in by the +"{project-name}-ci-jobs" job-group and does not need to be explicitly called if +the job group is being used. + +Miniaml Example: + +.. literalinclude:: ../../.jjb-test/lf-ci-jobs/jenkins-cfg-merge-minimal.yaml + :language: yaml + +Full Example: + +.. literalinclude:: ../../.jjb-test/lf-ci-jobs/jenkins-cfg-merge-full.yaml + :language: yaml + + JJB Deploy Job --------------