From ba8e49b6494a7290be3e26df0faca758dcc639fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 3 Sep 2019 10:48:11 -0400 Subject: [PATCH] save diawi link in the build description for easy access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/ios.groovy | 2 ++ ci/nix.groovy | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/ios.groovy b/ci/ios.groovy index 6ea408244a..69efc7b557 100644 --- a/ci/ios.groovy +++ b/ci/ios.groovy @@ -69,6 +69,8 @@ def uploadToDiawi() { ) } diawiUrl = readFile "${env.WORKSPACE}/fastlane/diawi.out" + /* Save the URL in the build description */ + currentBuild.description = "Diawi Link" return diawiUrl } diff --git a/ci/nix.groovy b/ci/nix.groovy index ed9df98055..39fa361314 100644 --- a/ci/nix.groovy +++ b/ci/nix.groovy @@ -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() + """) } /**