Revision number needs to be altered if a job imports a dependent component; Make sure imports happen after the initial revision number is calculated
This commit is contained in:
parent
64a6b177de
commit
e3bf9774ed
1 changed files with 1 additions and 0 deletions
|
|
@ -138,6 +138,7 @@ String generate(meta, String sourcerevision, String sourcepath, int basebuildnum
|
|||
|
||||
int incrementrevision(int current, int increment) {
|
||||
def int newrevision = (current + increment) % (maxversionnumber() + 1)
|
||||
echo "Current revision: ${current} Increment: ${increment} New revision: ${newrevision}"
|
||||
return newrevision
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue