Aw: How to checkout Jenkinsfile by a custom script?

2017-04-24 Thread Al Le
> So, my question is: Is it possible (and how) to have the Jenkinsfile under 
> version control, do the check out for it by a custom script (e.g. using a 
> .bat command) and then have the pipeline executed as if the Jenkinsfile had 
> been extracted by the "Pipeline script from SCM" option?

I.e., as I understand it, I need a plugin command to interpret a given 
Jenkinsfile. Is there one for doing this? Groovy "load" is not what I need 
because it loads and executed standard Groovy code and not the pipeline syntax.

-- 
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/trinity-207ac27e-4de0-4e49-99fb-e6943e06eeca-1493062983972%403capp-gmx-bs01.
For more options, visit https://groups.google.com/d/optout.


How to checkout Jenkinsfile by a custom script?

2017-04-24 Thread Al Le
Hello,

I've created a Jenkins job of type "Pipeline" and used an inline pipeline 
script. Now I'd like to put the script under version control and use the 
"Pipeline script from SCM" option (I think, I don't have to describe the merits 
of this).

However, our version control system (CA SCM) is not well supported in Jenkins: 
I couldn't make the plugin to check out anything.

We do have, however, some scripts for working with CA SCM that allow to check 
out things reliably.

So, my question is: Is it possible (and how) to have the Jenkinsfile under 
version control, do the check out for it by a custom script (e.g. using a .bat 
command) and then have the pipeline executed as if the Jenkinsfile had been 
extracted by the "Pipeline script from SCM" option?

Thanks!

-- 
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/trinity-72a39176-539c-4ad4-a492-b7e6ba6a8ebd-1493030557838%403capp-gmx-bs44.
For more options, visit https://groups.google.com/d/optout.