When doing nested release repo imports - ignore components that have incomplete release info
This commit is contained in:
parent
2ab828273c
commit
e67bec14df
1 changed files with 12 additions and 9 deletions
|
|
@ -239,15 +239,18 @@ def hierarchyartifactimportfromrepo(meta, ImportOptions importoptions, String de
|
|||
def cloneurl = relatedmeta.releaseinfo.releaserepoURL
|
||||
def clonerevision = "refs/tags/${relatedmeta.releasetag()}"
|
||||
def clonepath = "${destpath}/${relatedoffsetpath}"
|
||||
echo "Cloning release repo: ${cloneurl}, revision: ${clonerevision} at folder: ${clonepath}"
|
||||
|
||||
gh.gitCheckoutAlt(cloneurl, clonerevision, clonepath, "", 1, true, [])
|
||||
|
||||
gh.stripgithistory(clonepath)
|
||||
|
||||
def metafilepath = "${clonepath}${relatedmeta.metafilepath()}"
|
||||
echo "Marking related meta as released and rewriting meta file: ${metafilepath}"
|
||||
rewritemetafileasreleased(relatedmeta, metafilepath)
|
||||
if (relatedmeta.componentidentifier() != '___' &&
|
||||
relatedmeta.componentidentifier() != '_' &&
|
||||
cloneurl != '') {
|
||||
echo "Cloning release repo: ${cloneurl}, revision: ${clonerevision} at folder: ${clonepath}"
|
||||
gh.gitCheckoutAlt(cloneurl, clonerevision, clonepath, "", 1, true, [])
|
||||
gh.stripgithistory(clonepath)
|
||||
def metafilepath = "${clonepath}${relatedmeta.metafilepath()}"
|
||||
echo "Marking related meta as released and rewriting meta file: ${metafilepath}"
|
||||
rewritemetafileasreleased(relatedmeta, metafilepath)
|
||||
} else {
|
||||
echo "Not importing component that would be placed at path: ${clonepath}"
|
||||
}
|
||||
}
|
||||
gh.stripgithistory(destpath)
|
||||
def metafilepath = "${destpath}/${meta.metafilepath()}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue