jenkinsci / jenkins-multijob-plugin

A new multijob plugin was created by Tikal ALM team. Using this job you can add full hierarchy of Jenkins jobs that will be executed in sequence or in parallel.
https://plugins.jenkins.io/jenkins-multijob-plugin/
MIT License
72 stars 132 forks source link

Wrong links in job summary #17

Open b-pedersen opened 11 years ago

b-pedersen commented 11 years ago

If jenkins is not run on /, but under a prefix, e.g. jenkins the links to the sub-jobs in the job summary page are missing this prefix. The links in the console output are correct.

See also: https://issues.jenkins-ci.org/browse/JENKINS-14955

b-pedersen commented 11 years ago

Adding the rootURL in MultiJobBuild/main.jelly fixes the issue for me:

diff --git a/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly b/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly index d347b07..d42fda0 100644 --- a/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly +++ b/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly @@ -17,7 +17,7 @@

- - ^M build #${builder.buildNumber} /j:when
yorammi commented 6 years ago

I'm closing this issue as deprecated. @b-pedersen - please re-open if still relevant

eivindlm commented 6 years ago

I'm using Jenkins 2.136, running behind an Apache proxy under prefix "/jenkins". When I from the dashboard click on my multijob, i see a list of all the jobs which are part of the multijob, but the links to each of these jobs are incorrect.

For example, the link for one project is: http://localhost:8080/job/my-sub-job/ whereas the correct link should be: http://my.domain.com/jenkins/job/my-sub-job/

I checked out the source, and it appears that all uses of ${builder.url} is prefixed by ${rootURL}/, which means this issue is not fixed by the b-pedersen's comment above.

I'm not familiar with any of the languages this plugin is written in, but please let me know if I can contribute with anything to fix the issue.

zentoaku commented 5 years ago

Is there any chance that this one will be solved? Experiencing similar issue after running Jenkins over https. The links to subjobs in summary are generated with plain http, not respecting the jenkins setup.