Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JENKINS-41578 Add a system property/environment variable to specify d… #7

Merged
merged 1 commit into from
Jan 31, 2017

Conversation

i386
Copy link
Contributor

@i386 i386 commented Jan 30, 2017

…efault display url impl

Environment variable: JENKINS_DISPLAYURL_PROVIDER
System property: jenkins.displayurl.provider

To switch to classic only:
-Djenkins.displayurl.provider=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider
OR
JENKINS_DISPLAYURL_PROVIDER=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider

PTAL @vivek @imeredith

@michaelneale
Copy link
Member

would be a 🐝 but seems build failure.

@i386 i386 merged commit cec8175 into master Jan 31, 2017
@i386 i386 deleted the feature/JENKINS-41578 branch January 31, 2017 06:42
@i386
Copy link
Contributor Author

i386 commented Jan 31, 2017

Build is failing on some other server thats building this component but legit passing on another

@dlarr
Copy link

dlarr commented Nov 12, 2024

Hello,

I maintain a sharedlib to build my ~1000 projects (on bitbucket), they are dispatched on ~100 different Jenkins.
These Jenkins have this plugin on 2.3.5 version.

I don't wish to set my prefered view on each Jenkins. And also I don't want to set the provider like so : System.setProperty('jenkins.displayurl.provider', 'org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider')

Because I don't want to impact other sharedlib scopes.

I would like to be able to impact the link sent to bitbucket builds in a way like that:
env.JOB_DISPLAY_URL = env.BUILD_URL // <= This doesn't seems to work.

so that

1- This simple variable (or plugin call ?) impacts all 100 Jenkins at once ?
2- This simple variable (or plugin call ?) does not impact other sharedlib ?
Can you please tell me if there is a way to achieve this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants