From: Andrew Grimberg Date: Mon, 12 Jun 2017 19:51:37 +0000 (-0700) Subject: Jenkins cannot handle ${} vars in GitHub project X-Git-Tag: v0.3.3~1 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=8893827db2c2ecf7e3bf3ee47c6e1d3c2a9560c7;p=releng%2Fglobal-jjb.git Jenkins cannot handle ${} vars in GitHub project The GitHub project requires a rendered URL to the project. It does not apparently properly render variables that are {} enclosed which means that any vars needs to fully path separated properly Issue: RELENG-188 Change-Id: Ie616752899453a0e614f1b6500eb2886e796d7a9 Signed-off-by: Andrew Grimberg --- diff --git a/README.md b/README.md index 61b8739f..0ce3c240 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,14 @@ Trigger global configuration. **jenkins-ssh-credential**: The name of the Jenkins Credential to use for ssh connections. -If you are using GitHub then there is one more parameter which +If you are using GitHub then there are two more parameters which will need to be placed in the defaults.yaml +**git-url**: This should be set to the base URL of your GitHub. In +general this should be https://github.com. If you are using GitHub +Enterprise, or some other GitHub-style system, then it should be +whatever your installation base URL is. + **github-org**: The name of the GitHub organization. defaults.yaml: diff --git a/jjb/lf-ci-jobs.yaml b/jjb/lf-ci-jobs.yaml index f32547d7..cc872607 100644 --- a/jjb/lf-ci-jobs.yaml +++ b/jjb/lf-ci-jobs.yaml @@ -213,7 +213,7 @@ properties: - github: - url: '${{GIT_URL}}{github-org}/{project}' + url: '{git-url}/{github-org}/{project}' scm: - lf-infra-github-scm: @@ -252,7 +252,7 @@ properties: - github: - url: '${{GIT_URL}}{github-org}/{project}' + url: '{git-url}/{github-org}/{project}' scm: - lf-infra-github-scm: diff --git a/jjb/lf-maven-jobs.yaml b/jjb/lf-maven-jobs.yaml index 4e8d9174..bb376a36 100644 --- a/jjb/lf-maven-jobs.yaml +++ b/jjb/lf-maven-jobs.yaml @@ -132,7 +132,7 @@ properties: - github: - url: '${{GIT_URL}}{github-org}/{project}' + url: '{git-url}/{github-org}/{project}' scm: - lf-infra-github-scm: diff --git a/jjb/lf-python-jobs.yaml b/jjb/lf-python-jobs.yaml index f888c847..3e4add29 100644 --- a/jjb/lf-python-jobs.yaml +++ b/jjb/lf-python-jobs.yaml @@ -123,7 +123,7 @@ properties: - github: - url: '${{GIT_URL}}{github-org}/{project}' + url: '{git-url}/{github-org}/{project}' scm: - lf-infra-github-scm: