Build up a tag map
This commit is contained in:
parent
3dbdf85dfa
commit
0ca7886778
1 changed files with 6 additions and 2 deletions
|
|
@ -46,9 +46,13 @@ LinkedHashMap<String, ArrayList<String>> getremoteshatagmap(String repositoryURL
|
|||
def tag = shatagfields[1].trim()
|
||||
echo "sha: ${sha} tag: ${tag}"
|
||||
if (shatagmap.get(sha) == null) {
|
||||
shatagmap.put(sha, [tag])
|
||||
def ArrayList<String> taglist = new ArrayList<String>()
|
||||
taglist.add(tag)
|
||||
shatagmap.put(sha, taglist)
|
||||
} else {
|
||||
shatagmap.put(sha, shatagmap.get(sha).add(tag))
|
||||
def taglist = shatagmap.get(sha)
|
||||
taglist.add(tag)
|
||||
shatagmap.put(sha, taglist)
|
||||
}
|
||||
}
|
||||
return shatagmap
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue