Jenkins cannot handle ${} vars in GitHub project 81/5181/4
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 12 Jun 2017 19:51:37 +0000 (12:51 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Mon, 12 Jun 2017 20:37:25 +0000 (13:37 -0700)
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 <agrimberg@linuxfoundation.org>
README.md
jjb/lf-ci-jobs.yaml
jjb/lf-maven-jobs.yaml
jjb/lf-python-jobs.yaml

index 61b8739..0ce3c24 100644 (file)
--- 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:
index f32547d..cc87260 100644 (file)
 
     properties:
       - github:
-          url: '${{GIT_URL}}{github-org}/{project}'
+          url: '{git-url}/{github-org}/{project}'
 
     scm:
       - lf-infra-github-scm:
 
     properties:
       - github:
-          url: '${{GIT_URL}}{github-org}/{project}'
+          url: '{git-url}/{github-org}/{project}'
 
     scm:
       - lf-infra-github-scm:
index 4e8d917..bb376a3 100644 (file)
 
     properties:
       - github:
-          url: '${{GIT_URL}}{github-org}/{project}'
+          url: '{git-url}/{github-org}/{project}'
 
     scm:
       - lf-infra-github-scm:
index f888c84..3e4add2 100644 (file)
 
     properties:
       - github:
-          url: '${{GIT_URL}}{github-org}/{project}'
+          url: '{git-url}/{github-org}/{project}'
 
     scm:
       - lf-infra-github-scm: