save diawi link in the build description for easy access

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-09-03 10:48:11 -04:00
parent 8c6bd0dc69
commit ba8e49b649
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 4 additions and 6 deletions

View File

@ -69,6 +69,8 @@ def uploadToDiawi() {
)
}
diawiUrl = readFile "${env.WORKSPACE}/fastlane/diawi.out"
/* Save the URL in the build description */
currentBuild.description = "<a href=\"${diawiUrl}\">Diawi Link</a>"
return diawiUrl
}

View File

@ -18,17 +18,13 @@ def shell(Map opts = [:], String cmd) {
if (env.TARGET_OS in ['windows', 'ios']) {
opts.pure = false
}
def stdOut = sh(
script: """
sh("""
set +x
. ~/.nix-profile/etc/profile.d/nix.sh
set -x
IN_CI_ENVIRONMENT=1 \\
nix-shell --run \'${cmd}\' ${_getNixCommandArgs(opts, true)}
""",
returnStdout: true
)
return stdOut.trim()
""")
}
/**