Yeah, you can use something like
stages {
stage("foo") {
steps {
dir("some-dir") {
checkout ...
}
}
}
On Thu, Jun 8, 2017 at 12:02 PM, Mark Waite
wrote:
> The scripted pipeline has a dir() and a ws() command which can be used as
> a
The scripted pipeline has a dir() and a ws() command which can be used as a
wrapper around a checkout. I haven't looked to see if the same is
available in declarative.
I'd prefer that the git plugin "checkout to subdirectory" not be used in
pipeline, since there is already a concept for creating
steps 'git' and 'svn' are actually shortcuts for checkout step with
corresponding $class.
The problem is, that $class: 'GitSCM' does not accept parameter local: ,
so it checks everything out to the workspace root anyway, promptly
wiping out results of previous step... Looks like there is
On Wed, 7 Jun 2017, at 17:36, Kirill Peskov wrote:
> Due to some project restrictions I have to combine sources from 3
> repositories (1 Subversion and 2 Git repos), is there an easy way to
> achieve that in a declarative pipeline? Neither project subdirs nor
> files in the root of each repo are
Currently, as the test tools and debian packager are significantly
smaller than main source code I could probably stash/unstash their
corresponding subfolders to achieve the necessary effect, but it doesn't
look elegant... ;)
//...
git url:'url-to-packager-sources'
stash name: "debian-installer",
Hi All,
Due to some project restrictions I have to combine sources from 3
repositories (1 Subversion and 2 Git repos), is there an easy way to
achieve that in a declarative pipeline? Neither project subdirs nor
files in the root of each repo are not overlapping with each other, so
merging them in