Verifier Docker image PUBLISH_ARTIFACTS_OFFLINE option (#1284)
New option for publishing stubs just into local .m2 added.
This commit is contained in:
committed by
Marcin Grzejszczak
parent
a9746af7b6
commit
1ec86207c5
@@ -109,11 +109,14 @@ test.finalizedBy("copyOutput")
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url getProp('REPO_WITH_BINARIES_URL') ?: 'http://localhost:8081/artifactory/libs-release-local'
|
||||
credentials {
|
||||
username getProp('REPO_WITH_BINARIES_USERNAME') ?: 'admin'
|
||||
password getProp('REPO_WITH_BINARIES_PASSWORD') ?: 'password'
|
||||
mavenLocal()
|
||||
if (!Boolean.parseBoolean(getProp("PUBLISH_ARTIFACTS_OFFLINE") ?: "false")) {
|
||||
maven {
|
||||
url getProp('REPO_WITH_BINARIES_URL') ?: 'http://localhost:8081/artifactory/libs-release-local'
|
||||
credentials {
|
||||
username getProp('REPO_WITH_BINARIES_USERNAME') ?: 'admin'
|
||||
password getProp('REPO_WITH_BINARIES_PASSWORD') ?: 'password'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user