[JIRA] (JENKINS-16225) Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL

2018-04-12 Thread mich...@redengine.co.nz (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Michael McCallum commented on  JENKINS-16225  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL   
 

  
 
 
 
 

 
 An init.d.groovy script like so will set your url and allow jobs to access the JOB_URL OOTB import jenkins.model.JenkinsLocationConfiguration location = JenkinsLocationConfiguration.get() location.setUrl('https://jenkins.example.com') location.setAdminAddress('jenk...@example.com'); location.save()  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-16225) Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL

2013-02-23 Thread sjti...@gmail.com (JIRA)














































Sami Tikka
 commented on  JENKINS-16225


Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL















Sorry for being so thick-headed.. I only now understood what the problem is and verified it myself. Set up a new Jenkins (1.502), set up a job that runs "env" and build it. Then go to the global configuration, click Save. Then build the job again. Compare the output from env command:

The environment variables BUILD_URL, JOB_URL, JENKINS_URL and HUDSON_URL are missing from the first run and only appear after you have visited global configuration AND  clicked the Save button. It is not enough to visit the global configuration. You have to click the Save button.

This really is a bug. Not a huge bug and there is a good workaround. I'm not sure if anyone would set up a real Jenkins instance without even once visiting the global configuration... but it is a bug anyway.



























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-16225) Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL

2013-02-02 Thread sjti...@gmail.com (JIRA)














































Sami Tikka
 commented on  JENKINS-16225


Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL















The JENKINS_URL and BUILD_URL and other *_URL environment variables should be there in the build step environment. To compute those URLs Jenkins needs to know its own address. 

Jenkins makes a couple of bad guesses to what its own address should be and I think it has failed for some reason. Is there anything in the Jenkins log file that would give a hint to what went wrong during startup?

If you are running Jenkins on a Mac installed from the Jenkins Mac installer, the Jenkins output goes to system log, so you can use Console.app to view and search it.

You could also go to the Jenkins global configuration and explicitly set the Jenkins address. That would remove the need for Jenkins to guess.



























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







-- 
You received this message because you are subscribed to the Google Groups Jenkins Issues group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




[JIRA] (JENKINS-16225) Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL

2013-01-04 Thread rbev...@acm.org (JIRA)














































Russell Bevers
 updated  JENKINS-16225


Add note to env-vars.html so user knows that Environment variables configuration is requried to export JENKINS_URL, JOB_URL, BUILD_URL
















Change By:


Russell Bevers
(05/Jan/13 4:18 AM)




Summary:


Addnotetoenv-vars.htmlsouserknowsthatEnvironmentvariablesconfigurationisrequriedtoexport
JENKINS_URL,JOB_URL,BUILD_URL
notset





Issue Type:


Bug
Improvement



























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