From: Andrew Grimberg Date: Mon, 20 Aug 2018 15:27:31 +0000 (+0000) Subject: Merge "Make staging jobs run daily" X-Git-Tag: v0.24.0~11 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=ff0114631417a7386122cc9285b353f0ecbbdae0;hp=e1382a101a5bf19dacc7502b62af8f5188b73b64;p=releng%2Fglobal-jjb.git Merge "Make staging jobs run daily" --- diff --git a/docs/jjb/lf-ci-jobs.rst b/docs/jjb/lf-ci-jobs.rst index dc9690e5..849c4152 100644 --- a/docs/jjb/lf-ci-jobs.rst +++ b/docs/jjb/lf-ci-jobs.rst @@ -400,6 +400,7 @@ Runs `jenkins-jobs update` to update production job configuration :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 10) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) + :jjb-version: JJB version to install. (default: see job-template) :stream: Keyword that can be used to represent a release code-name. Often the same as the branch. (default: master) :submodule-recursive: Whether to checkout submodules recursively. @@ -437,6 +438,7 @@ Runs `jenkins-jobs test` to validate JJB syntax :build-days-to-keep: Days to keep build logs in Jenkins. (default: 7) :build-timeout: Timeout in minutes before aborting build. (default: 10) :git-url: URL clone project from. (default: $GIT_URL/$PROJECT) + :jjb-version: JJB version to install. (default: see job-template) :stream: Keyword that can be used to represent a release code-name. Often the same as the branch. (default: master) :submodule-recursive: Whether to checkout submodules recursively. diff --git a/jjb/lf-macros.yaml b/jjb/lf-macros.yaml index bc1ce586..6f77339f 100644 --- a/jjb/lf-macros.yaml +++ b/jjb/lf-macros.yaml @@ -181,7 +181,7 @@ variable: SIGUL_PASSWORD - file-id: sigul-pki variable: SIGUL_PKI - - shell: !include-raw-escape: ../shell/sigul-configuration.sh + - shell: !include-raw: ../shell/sigul-configuration.sh - builder: name: lf-pip-install @@ -211,7 +211,7 @@ name: lf-provide-sigul-configuration-cleanup # Clear sigul configuration files after we're done using them builders: - - shell: !include-raw-escape: ../shell/sigul-configuration-cleanup.sh + - shell: !include-raw: ../shell/sigul-configuration-cleanup.sh - builder: name: lf-rtd-trigger-build @@ -235,8 +235,8 @@ name: lf-sigul-install # Requires that Jenkins be configured with SIGUL_BRIDGE_IP as a global # Environment variable - builder: - - shell: !include-raw-escape: ../shell/sigul-install.sh + builders: + - shell: !include-raw: ../shell/sigul-install.sh - builder: name: lf-infra-provide-docker-cleanup diff --git a/jjb/lf-maven-jobs.yaml b/jjb/lf-maven-jobs.yaml index e55a2c0c..0c02f3d7 100644 --- a/jjb/lf-maven-jobs.yaml +++ b/jjb/lf-maven-jobs.yaml @@ -546,7 +546,7 @@ branch: master build-days-to-keep: 30 # 30 days in case we need to troubleshoot build-timeout: 60 - cron: 'H H * * 0' # push fresh snapshot weekly + cron: '@daily' git-url: '$GIT_URL/$PROJECT' github-url: 'https://github.com' java-version: openjdk8 @@ -660,6 +660,7 @@ jenkins-ssh-credential: '{jenkins-ssh-credential}' triggers: + - timed: '{obj:cron}' - github - pollscm: cron: '' diff --git a/shell/sigul-configuration.sh b/shell/sigul-configuration.sh index bdc4de67..c063b18b 100644 --- a/shell/sigul-configuration.sh +++ b/shell/sigul-configuration.sh @@ -11,7 +11,7 @@ echo "---> sigul-configuration.sh" # Ensure we fail the job if any steps fail. -set -eu -o pipefail +set -e -o pipefail # Sigul pki configuration is designed to live in ${HOME}/sigul cd "${HOME}" @@ -23,4 +23,3 @@ tar Jxf sigul.tar.xz # Any future use of $SIGUL_PASSWORD needs to have it null terminated sed -i 's/$/\x0/' "${SIGUL_PASSWORD}" - diff --git a/shell/sigul-install.sh b/shell/sigul-install.sh index 5d015ffd..8573154e 100644 --- a/shell/sigul-install.sh +++ b/shell/sigul-install.sh @@ -11,7 +11,7 @@ echo "---> sigul-install.sh" # Ensure we fail the job if any steps fail. -set -eu -o pipefail +set -e -o pipefail # Setup sigul RPM repo echo "[fedora-infra-sigul]