ci: fix upload speeds on Windows

By using `s3cmd` through PowerShell instead of Git Bash we improve
upload speeds on Windows slightly, as described here:
https://github.com/status-im/infra-ci/issues/40

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-07-18 20:17:48 +02:00
parent 9943a7cf1f
commit 83c066f517
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
7 changed files with 31 additions and 19 deletions

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent { label 'linux' }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent {
@ -59,7 +59,9 @@ pipeline {
}
stage('status-go') {
steps { sh 'make status-go' }
steps {
sh 'make status-go'
}
}
stage('Package') {

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent {

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent {
@ -64,12 +64,14 @@ pipeline {
}
stage('status-go') {
steps { sh 'make status-go' }
steps {
sh 'make status-go'
}
}
stage('Package') {
steps { script {
macos.bundle()
macos.bundle('pkg-macos')
} }
}

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent {

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent { label 'windows' }
@ -31,7 +31,7 @@ pipeline {
environment {
TARGET = 'windows'
/* Improve make performance */
MAKEFLAGS = "-j4 V=${params.VERBOSE}"
MAKEFLAGS = "-j${utils.getProcCount()} V=${params.VERBOSE}"
/* Disable colors in Nim compiler logs */
NIMFLAGS = '--colors:off'
/* Control output the filename */
@ -53,7 +53,9 @@ pipeline {
}
stage('status-go') {
steps { sh 'make status-go' }
steps {
sh 'make status-go'
}
}
stage('Package') {
@ -63,24 +65,30 @@ pipeline {
}
stage('Parallel Upload') {
/* Uploads on Windows are slow. */
parallel {
stage('Upload') {
stage('Upload 7Z') {
steps { script {
zip_url = s3.uploadArtifact(env.STATUS_CLIENT_7Z)
exe_url = s3.uploadArtifact(env.STATUS_CLIENT_EXE)
env.PKG_URL = exe_url
jenkins.setBuildDesc(Zip: zip_url, Exe: exe_url)
} }
}
stage('Upload EXE') {
steps { script {
exe_url = s3.uploadArtifact(env.STATUS_CLIENT_EXE)
} }
}
}
}
stage('Archive') {
steps { script {
archiveArtifacts(env.STATUS_CLIENT_EXE)
archiveArtifacts(env.STATUS_CLIENT_7Z)
env.PKG_URL = exe_url
jenkins.setBuildDesc(Zip: zip_url, Exe: exe_url)
} }
}
}
}
}
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }

View File

@ -1,4 +1,4 @@
library 'status-jenkins-lib@v1.5.1'
library 'status-jenkins-lib@v1.5.6'
pipeline {
agent {