first attempt to build Signal
This commit is contained in:
parent
b5975f9dd8
commit
fb6106759e
84
build-signal.jenkins
Normal file
84
build-signal.jenkins
Normal file
@ -0,0 +1,84 @@
|
||||
def repository = "registry.c.test-chamber-13.lan"
|
||||
def repositoryCreds = "harbor-repository-creds"
|
||||
|
||||
def label = "kubernetes-${UUID.randomUUID().toString()}"
|
||||
def templateName = "pipeline-worker"
|
||||
def outputFile
|
||||
|
||||
podTemplate(
|
||||
label: label,
|
||||
name: templateName,
|
||||
yaml: functions.podYaml(
|
||||
repo: repository,
|
||||
templateName: templateName,
|
||||
alpine: true,
|
||||
[
|
||||
[
|
||||
name: "node-18",
|
||||
path: "${repository}/dockerhub/library/node:18.15",
|
||||
command: "/bin/bash"
|
||||
]
|
||||
]
|
||||
)
|
||||
) {
|
||||
node (label) {
|
||||
def workspace = pwd()
|
||||
|
||||
stage ("Pull FFMpeg Builder") {
|
||||
dir("signal-desktop") {
|
||||
checkout ([
|
||||
$class: "GitSCM",
|
||||
branches: [
|
||||
[
|
||||
name: "refs/heads/master",
|
||||
],
|
||||
],
|
||||
userRemoteConfigs: [
|
||||
[
|
||||
url: "https://github.com/signalapp/Signal-Desktop.git",
|
||||
],
|
||||
],
|
||||
extensions: [
|
||||
[
|
||||
$class: "CloneOption",
|
||||
shallow: true,
|
||||
],
|
||||
[
|
||||
$class: "CheckoutOption",
|
||||
timeout: 2,
|
||||
],
|
||||
],
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
stage ("Build FFMpeg") {
|
||||
container ("node-18") {
|
||||
writeFile(file: workspace + "/test-chamber-13.lan.root.crt", text: functions.getCurrentRootCA())
|
||||
sh """
|
||||
rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg
|
||||
npm install --global yarn
|
||||
cd ${workspace}/signal-desktop
|
||||
sed 's/\\"build:electron\\"\\:\\s\\"electron-builder/\\"build:electron\\"\\: \\"electron-builder --linux AppImage/' -i package.json
|
||||
yarn install --frozen-lockfile
|
||||
yarn generate
|
||||
yarn build
|
||||
"""
|
||||
|
||||
outputFile = sh (
|
||||
script: """
|
||||
basename \$(find ${workspace}/signal-desktop/ -name "*.AppImage")
|
||||
""",
|
||||
returnStdout: true
|
||||
).trim()
|
||||
}
|
||||
}
|
||||
|
||||
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