Am 2015-07-14 um 07:16 schrieb Michael Lasevich:
I want to keep my workflow script in same git repo as rest of my code
and want to avoid hard-coding URLs or branch names into the workflow.
I also want that, I consider that a hard requirement actually.
When I use "Groovy CPS DSL from SCM" it seems to check out into a
separate workspace, so I do not have access to anything in the git
repo. I could check out the code in the workflow for the second time,
but for whatever reason the SCM variables are not available within the
workflow (why???)
Is there a good way to do this?
That was implemented in
https://issues.jenkins-ci.org/browse/JENKINS-26101 I believe, I feel
tempted to reopen that issue.
I would ask for the ability to have the workflow run inside a directory
that has a checkout of whatever was configured
to retrieve the script and parameters about what revision / branch was
checked out.
Would that also work for you? Or dou you need more?
Maybe just go ahead and reopen the issue yourself :)
Br,
Christoph
--
You received this message because you are subscribed to the Google Groups "Jenkins
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/55A74841.6010004%40gmail.com.
For more options, visit https://groups.google.com/d/optout.