Chetan | Add SNAPSHOT to dev/qa artifacts

This commit is contained in:
chetankothari
2020-05-28 23:29:48 +05:30
parent 3c8b2030f4
commit 4463fd35a7

View File

@@ -177,7 +177,11 @@ uploadArchives {
repository(url: "$NEXUS_URL") {
authentication(userName: "$NEXUS_USERNAME", password: "$NEXUS_PASSWORD")
}
pom.version = "navi_v$VERSION_NAME"
if ("$FLAVOR" == "PROD") {
pom.version = "navi_v$VERSION_NAME"
} else {
pom.version = "navi_v$VERSION_NAME-SNAPSHOT"
}
pom.artifactId = "$FLAVOR"
pom.groupId = "com.naviapp"
}