Tweak detection of Bamboo
When exposed as an environment variable Bamboo's bamboo.resultsUrl is mapped to bamboo_resultsUrl. This commit updates the build scan user data script to look for the latter rather than the former.
This commit is contained in:
@@ -44,13 +44,17 @@ void addGitMetadata() {
|
|||||||
|
|
||||||
void addCiMetadata() {
|
void addCiMetadata() {
|
||||||
def ciBuild = 'CI BUILD'
|
def ciBuild = 'CI BUILD'
|
||||||
if (System.getenv('bamboo.resultsUrl')) {
|
if (isBamboo()) {
|
||||||
buildScan.link ciBuild, System.getenv('bamboo.resultsUrl')
|
buildScan.link ciBuild, System.getenv('bamboo_resultsUrl')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean isCi() {
|
boolean isCi() {
|
||||||
System.getenv('bamboo.resultsUrl')
|
isBamboo()
|
||||||
|
}
|
||||||
|
|
||||||
|
boolean isBamboo() {
|
||||||
|
System.getenv('bamboo_resultsUrl')
|
||||||
}
|
}
|
||||||
|
|
||||||
String execAndGetStdout(String... args) {
|
String execAndGetStdout(String... args) {
|
||||||
|
|||||||
Reference in New Issue
Block a user