corrects syntax

This commit is contained in:
Hyatt 2023-10-29 11:50:25 -05:00
parent 4e247ed59e
commit 0874289fcf
Signed by: nhyatt
GPG Key ID: C50D0BBB5BC40BEA

View File

@ -99,36 +99,40 @@ pipeline {
stage ("Build Signal") { stage ("Build Signal") {
steps { steps {
container ("node-18") { container ("node-18") {
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA()) script {
sh """ writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA())
git config --global --add safe.directory '*' sh """
apt-get update -yqq && apt-get full-upgrade -yqq git config --global --add safe.directory '*'
apt-get install -yqq curl wget git jq git-lfs apt-get update -yqq && apt-get full-upgrade -yqq
cd ${workspace}/signal-desktop apt-get install -yqq curl wget git jq git-lfs
cat package.json | jq '.build.linux += {target:["AppImage"]}' > with_appimage_package.json cd ${workspace}/signal-desktop
mv with_appimage_package.json package.json cat package.json | jq '.build.linux += {target:["AppImage"]}' > with_appimage_package.json
yarn install mv with_appimage_package.json package.json
yarn build-release yarn install
""" yarn build-release
"""
outputFile = sh ( outputFile = sh (
script: """ script: """
basename \$(find ${workspace}/signal-desktop/ -name "*.AppImage") basename \$(find ${workspace}/signal-desktop/ -name "*.AppImage")
""", """,
returnStdout: true returnStdout: true
).trim() ).trim()
}
} }
} }
} }
stage ('Push Artifacts') { stage ('Push Artifacts') {
steps { steps {
functions.pushArtifact( script {
repoCreds: "nexus-generic-upload-bot", functions.pushArtifact(
fileName: outputFile, repoCreds: "nexus-generic-upload-bot",
filePath: "${workspace}/release/", fileName: outputFile,
fileURL: "https://nexus.c.test-chamber-13.lan/repository/generic/signal/" filePath: "${workspace}/release/",
) fileURL: "https://nexus.c.test-chamber-13.lan/repository/generic/signal/"
)
}
} }
} }
} }