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