Refer to
https://github.com/jenkinsci/pipeline-examples/tree/master/jenkinsfile-examples
for
several samples which perform a checkout. Checkout will default to
checkout the same branch from which the Jenkinsfile was read.
Refer to
https://jenkins.io/doc/book/pipeline/getting-started/#defining-a-p
Thank you, Daniel and Mark. Unfortunately, none of these things are
documented. At least that I know of.
That's when I actually put sh "ls" in the pipeline script to list. When I
found my files, I assumed everything is taken care by Jenkins.
Coming to checkout - how can I make out that I checkou
Sharan,
Daniel was trying to tell you that you're misunderstanding what is a
workspace and what isn't a workspace.
The place where you're finding the Jenkinsfile is a temporary holding
location that exists for the purpose of reading the Jenkinsfile. It is not
a workspace. It is not a place wher
Daniel,
Don't try to be clever here. `checkout scm`.
You are giving me more credit than I deserve.
I really don't understand how source files from Git can appear in the
workspace and .git dir is missing.
In fact, for all the source files corresponding to every branch, there is
no .git dir.
I
> On 11.02.2017, at 05:02, Sharan Basappa wrote:
>
> 3) I am not checking out any repository explicitly in my Jenkinsfile - I
> still find source code in the workspace through
That's probably the reason, and the reason it's in a wrong directory. Don't try
to be clever here. `checkout scm`.
-