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
Does not work with Pipeline script from SCM #60
Comments
Could you provide your pipeline config? |
CC @abayer that is covering workflow+community issues. |
Ah this is just JENKINS-28447 then. The workaround would be to use an inline bootstrap script that just uses |
Sounds like not plugin issue. Closing. |
Too bad :( practically making pipeline jobs unusable for anything serious in production. |
@kad There is a hacky workaround, but yes it sucks. Seems to be stuck |
Well, this hack is not really usable. I tried to trigger pipeline job with this plugin, and try to get information about what actually triggered it inside simple static pipeline -> fail :( |
If you are on newer jenkins then it sucking securitu-170 fix that you need disable. |
I am trying this on 2.5 and jenkins runs as
still no luck of getting those vars visible from trigger. |
Actually, it was mine bad. Single quotes vs. double quotes in pipeline scripts. I love snippet generator defaults :( In the end of the day, workaround was done via something like this: https://gist.github.com/kad/4a5a8f669d4a4090b43be1f1c5461df3 About arguments and SECURITY-170, maybe it's possible to do something similar as in Gerrit trigger |
@kad as you see gerrit change requires core change, that would require the newest jenkins core version and cut a lot of users. SECURITY-170 is not a security fix, that just sucking/breakable/not-designed/unreviewed change (such things happening in jenkinsci project periodically). I wouldn't do anything until normal API would be available for the most number of jenkins users. |
then probably add something about that to https://wiki.jenkins-ci.org/display/JENKINS/Plugins+affected+by+fix+for+SECURITY-170 ? |
I don't care about this list, i expect they broke ALL trigger plugins, filling such list is stupid imho. |
@kad sorry, how did you edit wiki page without permissions? |
well, in your repository you have default settings for public repos. which means "Restrict editing to collaborators only" checkbox is not checked, thus any logged in users can edit your wiki pages. |
yes, i found :) was really surprised. I created special repo for accepting wiki changes https://github.com/KostyaSha/github-integration-plugin-wiki |
I think no one knows about repository. If you'd like to have changes for wiki page going via that repo, probably say about that on first page of wiki. |
Sure, created when somebody wanted contribute, will update docs later... |
BTW, 2.6 just released that has way for trigger plugins to whitelist their environment variables. ghprb seems to be already have corresponding fix for that. |
ghprb has no fix, that's crap. |
I'm using the Pipeline Plugin. With the script directly in the configuration.
I tried to switch to "Pipeline script from SCM", configuring git as said on the wiki. But it fails:
When I replace all
${GITHUB_PR_NUMBER}/${GITHUB_PR_COND_REF}
with6504/merge
it checks out OK. So the problem might be that those variables are not available for the git checkout?The text was updated successfully, but these errors were encountered: