mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-24 04:28:58 +00:00
This fixes issues like : 11:16:59 + s3cmd --stats --acl-public --no-preserve --host=ams3.digitaloceanspaces.com '--host-bucket=%(bucket)s.ams3.digitaloceanspaces.com' put pkg/StatusIm-Desktop-250205-101034-e6dfac-pr17210-aarch64.dmg s3://status-im-desktop-prs/ 11:16:59 /opt/homebrew/Cellar/s3cmd/2.4.0_1/libexec/lib/python3.13/site-packages/S3/S3Uri.py:122: SyntaxWarning: invalid escape sequence '\.' 11:16:59 m = re.match("(.*\.)?s3(?:\-[^\.]*)?(?:\.dualstack)?(?:\.[^\.]*)?\.amazonaws\.com(?:\.cn)?$", 11:16:59 /opt/homebrew/Cellar/s3cmd/2.4.0_1/libexec/lib/python3.13/site-packages/S3/S3Uri.py:170: SyntaxWarning: invalid escape sequence '\w' 11:16:59 _re = re.compile("^(\w+://)?(.*)", re.UNICODE) 11:16:59 /opt/homebrew/Cellar/s3cmd/2.4.0_1/libexec/lib/python3.13/site-packages/S3/FileLists.py:525: SyntaxWarning: invalid escape sequence '\*' 11:16:59 wildcard_split_result = re.split("\*|\?", uri_str, maxsplit=1) 11:17:00 ERROR: SSL certificate verification failure: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1018) - we also bump nix interpreter version to 2.24.11 - we also use a newer image which has support for nix-shell since sc5cmd needs a nix-shell
90 lines
2.3 KiB
Groovy
90 lines
2.3 KiB
Groovy
#!/usr/bin/env groovy
|
|
library 'status-jenkins-lib@v1.9.16'
|
|
|
|
/* Options section can't access functions in objects. */
|
|
def isPRBuild = utils.isPRBuild()
|
|
|
|
pipeline {
|
|
agent {
|
|
docker {
|
|
label 'linux'
|
|
image 'stateoftheartio/qt6:6.3-mingw-aqt'
|
|
}
|
|
}
|
|
|
|
parameters {
|
|
booleanParam(
|
|
name: 'RELEASE',
|
|
description: 'Decides whether release credentials are used.',
|
|
defaultValue: params.RELEASE ?: false
|
|
)
|
|
booleanParam(
|
|
name: 'INCLUDE_DEBUG_SYMBOLS',
|
|
description: 'Decides whether binaries are built with debug symbols.',
|
|
defaultValue: params.INCLUDE_DEBUG_SYMBOLS ?: false
|
|
)
|
|
}
|
|
|
|
options {
|
|
timestamps()
|
|
/* Prevent Jenkins jobs from running forever */
|
|
timeout(time: 20, unit: 'MINUTES')
|
|
/* manage how many builds we keep */
|
|
buildDiscarder(logRotator(
|
|
numToKeepStr: '10',
|
|
daysToKeepStr: '30',
|
|
artifactNumToKeepStr: '1',
|
|
))
|
|
/* Abort old PR builds. */
|
|
disableConcurrentBuilds(
|
|
abortPrevious: isPRBuild
|
|
)
|
|
}
|
|
|
|
environment {
|
|
PLATFORM = 'windows-cpp'
|
|
/* Control output the filename */
|
|
STATUS_CLIENT_ZIP = "pkg/${utils.pkgFilename(ext: 'zip')}"
|
|
}
|
|
|
|
// TODO: Move all stages to the Makefile as targets "*-windows-using-docker"
|
|
stages {
|
|
stage('CMake Build') {
|
|
steps {
|
|
sh "qt-cmake ${env.WORKSPACE} -G Ninja -B ${env.WORKSPACE}/build -DCMAKE_BUILD_TYPE=Release"
|
|
sh "cmake --build ${env.WORKSPACE}/build"
|
|
}
|
|
}
|
|
|
|
stage('Package') {
|
|
steps {
|
|
sh "windeployqt --qmldir ${env.WORKSPACE} --dir ${env.WORKSPACE}/build/deploy --libdir ${env.WORKSPACE}/build/deploy/libs --plugindir ${env.WORKSPACE}/build/deploy/plugins ${env.WORKSPACE}/build/*.exe"
|
|
sh "zip -r ${STATUS_CLIENT_ZIP} build/deploy/"
|
|
}
|
|
}
|
|
|
|
stage('Parallel Upload') {
|
|
parallel {
|
|
stage('Upload') {
|
|
steps { script {
|
|
exe_url = s5cmd.upload(env.STATUS_CLIENT_ZIP)
|
|
env.PKG_URL = exe_url
|
|
jenkins.setBuildDesc(Zip: zip_url, Exe: exe_url)
|
|
} }
|
|
}
|
|
stage('Archive') {
|
|
steps { script {
|
|
archiveArtifacts(env.STATUS_CLIENT_ZIP)
|
|
} }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success { script { github.notifyPR(true) } }
|
|
failure { script { github.notifyPR(false) } }
|
|
cleanup { sh './scripts/clean-git.sh' }
|
|
}
|
|
}
|