[JIRA] (JENKINS-16225) JENKINS_URL, JOB_URL, BUILD_URL not set
Gelin Su commented on JENKINS-16225 JENKINS_URL, JOB_URL, BUILD_URL not set You should select Environment variables option under manage jenkins/configure system. The you can get the *_URL variables. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16225) JENKINS_URL, JOB_URL, BUILD_URL not set
Russell Bevers commented on JENKINS-16225 JENKINS_URL, JOB_URL, BUILD_URL not set Thank you, Gelin. It is misleading, then, to have env-vars.html report that these variables are available to shell scripts. Instead perhaps it should say that these variables are exported to shell scripts if the Environment Variables checkbox is set in the Jenkins system configuration. I will see if I can find this in the code and update it. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16225) JENKINS_URL, JOB_URL, BUILD_URL not set
Russell Bevers commented on JENKINS-16225 JENKINS_URL, JOB_URL, BUILD_URL not set So I found the header text in core/src/main/resources/hudson/model/EnvironmentContributor/EnvVarsHtml/index.groovy. Do you know how I can programmatically include a link to "/configure/section1" in this index? I was planning to change it to be something like this: body { p "The following variables are available to shell scripts" p "NOTE: These variables will only be available if the node is configured to export environment variables. See " + #TODO function to insert link to "/configure/section1" here This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16225) JENKINS_URL, JOB_URL, BUILD_URL not set
Russell Bevers edited a comment on JENKINS-16225 JENKINS_URL, JOB_URL, BUILD_URL not set So I found the header text in core/src/main/resources/hudson/model/EnvironmentContributor/EnvVarsHtml/index.groovy. Do you know how I can programmatically include a link to "/configure/section1" in this index? I was planning to change it to be something like this: body { p "The following variables are available to shell scripts" p "NOTE: These variables will only be available if the node is configured to export environment variables. See " + #TODO function to insert link to "/configure/section1" here This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16225) JENKINS_URL, JOB_URL, BUILD_URL not set
Russell Bevers created JENKINS-16225 JENKINS_URL, JOB_URL, BUILD_URL not set Issue Type: Bug Affects Versions: current Assignee: Richard Sczepczenski Components: shell-script-scm Created: 29/Dec/12 6:53 PM Description: An Execute shell build step with simple command `env` shows that none of the *_URL environment variables are being imported to the shell. Scripts that access the Jenkins REST API rely on these vars to execute. E.g. output of `env` step on 1.495 BUILD_CAUSE_USERIDCAUSE=true HUDSON_SERVER_COOKIE=62a4ddfd88c783b78b6ae030cb9d0617 SHELL=/bin/bash TMPDIR=/var/folders/zv/6gwf54fj3c791gjxcddqp9t47c/T/ BUILD_TAG=jenkins-ios-app_master-17 WORKSPACE=/Users/Shared/Jenkins/Home/jobs/ios-app_master/workspace com.apple.java.jvmTask=CommandLine.java.java.java.java.java.java USER=jenkins __CF_USER_TEXT_ENCODING=0xEC:0:0 GIT_COMMIT=925e5ce56d7b6f0b67015131f8dd9d85e9c1168b JENKINS_HOME=/Users/Shared/Jenkins/Home PATH=/usr/bin:/bin:/usr/sbin:/sbin PWD=/Users/Shared/Jenkins/Home/jobs/ios-app_master/workspace JOB_NAME=ios-app_master JAVA_MAIN_CLASS_8793=Main com.apple.java.jvmMode=client BUILD_CAUSE=USERIDCAUSE BUILD_ID=2012-12-29_10-31-47 HOME=/Users/Shared/Jenkins SHLVL=1 GIT_BRANCH=origin/master JENKINS_SERVER_COOKIE=62a4ddfd88c783b78b6ae030cb9d0617 EXECUTOR_NUMBER=0 NODE_LABELS=master LOGNAME=jenkins HUDSON_HOME=/Users/Shared/Jenkins/Home NODE_NAME=master BUILD_NUMBER=17 HUDSON_COOKIE=fadc3c90-aca8-4b58-8850-5aded45d1348 JAVA_ARCH=x86_64 SECURITYSESSIONID=186d2 _=/usr/bin/env Environment: os.arch x86_64 os.name Mac OS X os.version 10.8.2 java.vendor Apple Inc. java.vendor.url http://www.apple.com/ java.version 1.6.0_37 Project: Jenkins Labels: jenkins Priority: Major Reporter: Russell Bevers This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira