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" diawiUrl = readFile "${env.WORKSPACE}/fastlane/diawi.out"
/* Save the URL in the build description */
currentBuild.description = "<a href=\"${diawiUrl}\">Diawi Link</a>"
return diawiUrl return diawiUrl
} }

View File

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