From 6365a0d1e28f952a057e57542ba36fcec7d0be3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 29 Nov 2018 15:23:51 +0100 Subject: [PATCH] uplod sha256 checksums of built artifacts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.combined | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ci/Jenkinsfile.combined b/ci/Jenkinsfile.combined index 3dc7cba950..ef481fbb6d 100644 --- a/ci/Jenkinsfile.combined +++ b/ci/Jenkinsfile.combined @@ -65,7 +65,11 @@ pipeline { cmn.copyArts('status-react/combined/mobile-android', dro.number) cmn.copyArts('status-react/combined/mobile-android', e2e.number) cmn.copyArts('status-react/combined/mobile-ios', ios.number) - archiveArtifacts('pkg/*') + dir('pkg') { + /* generate sha256 checksums for upload */ + sh "sha256sum * | tee ${cmn.pkgFilename(btype, 'sha256')}" + archiveArtifacts('*') + } } } } stage('Upload') { @@ -83,6 +87,8 @@ pipeline { } /* special case for iOS Diawi links */ ipaUrl = ios.getBuildVariables().get('DIAWI_URL') + /* upload the sha256 checksums file too */ + e2eUrl = cmn.uploadArtifact(cmn.pkgFind('sha256')) /* add URLs to the build description */ cmn.setBuildDesc( Apk: apkUrl, e2e: e2eUrl, iOS: ipaUrl, App: appUrl, Mac: dmgUrl, Win: exeUrl,