Tag associated source repos
This commit is contained in:
parent
8a08eefc06
commit
70473b38d8
1 changed files with 15 additions and 3 deletions
|
|
@ -69,8 +69,20 @@ def checkoutreleaserepo(buildmeta, String checkoutfolder) {
|
|||
def checkoutsourcerepo(buildmeta, String checkoutfolder) {
|
||||
def String sourcerepo = buildmeta.gitinfo.remoteurl
|
||||
// Get the latest revision of the source repo without checking out working copy; Check out to a folder unique to component
|
||||
dir(sourcerepofolder) {
|
||||
sh("git clone --depth 1 ${sourcerepo} ${checkoutfolder}")
|
||||
if (fileExists(checkoutfolder)) {
|
||||
dir(checkoutfolder) {
|
||||
sh("""
|
||||
git reset --hard"
|
||||
git clean -fdx
|
||||
git pull
|
||||
"""
|
||||
)
|
||||
}
|
||||
}
|
||||
else {
|
||||
dir(sourcerepofolder) {
|
||||
sh("git clone ${sourcerepo} ${checkoutfolder}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -269,7 +281,7 @@ def gitrelease(buildmeta, previousreleasemeta, String releaserepo, String source
|
|||
}
|
||||
}
|
||||
dir(sourcerepo) {
|
||||
def String srcbuildstamp = "${buildmeta.productinfo.productname}_${buildmeta.buildstampinfo.buildstamp}"
|
||||
def String srcbuildstamp = "${buildmeta.productinfo.productname}_${buildmeta.productinfo.subcomponentname}_${buildmeta.buildstampinfo.buildstamp}"
|
||||
def String buildsha = buildmeta.gitinfo.gitrevision
|
||||
|
||||
def ArrayList<String> srctaglist = maketaglist(srcbuildstamp, otherreleasetags)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue