mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-08-05 23:35:50 +02:00
Jenkinsfile: Break long lines.
* extras/packaging/gnu-linux/Jenkinsfile: Break long lines. Change-Id: Idd6f72e18e0b4489a22e7aa2a59b4cc8ac90dbee
This commit is contained in:
parent
f6606722d6
commit
4461ba6902
1 changed files with 20 additions and 10 deletions
30
extras/packaging/gnu-linux/Jenkinsfile
vendored
30
extras/packaging/gnu-linux/Jenkinsfile
vendored
|
@ -32,7 +32,10 @@
|
||||||
// - Allow publishing from any node, to avoid relying on a single machine.
|
// - Allow publishing from any node, to avoid relying on a single machine.
|
||||||
|
|
||||||
// Configuration globals.
|
// Configuration globals.
|
||||||
def SUBMODULES = ['daemon', '3rdparty/SortFilterProxyModel', '3rdparty/qrencode-win32', 'extras/packaging/update/sparkle/Sparkle']
|
def SUBMODULES = ['daemon',
|
||||||
|
'3rdparty/SortFilterProxyModel',
|
||||||
|
'3rdparty/qrencode-win32',
|
||||||
|
'extras/packaging/update/sparkle/Sparkle']
|
||||||
def TARGETS = [:]
|
def TARGETS = [:]
|
||||||
def REMOTE_HOST = env.SSH_HOST_DL_RING_CX
|
def REMOTE_HOST = env.SSH_HOST_DL_RING_CX
|
||||||
def REMOTE_BASE_DIR = '/srv/repository/ring'
|
def REMOTE_BASE_DIR = '/srv/repository/ring'
|
||||||
|
@ -43,6 +46,7 @@ def GIT_PUSH_URL = 'ssh://jenkins@review.jami.net:29420/jami-client-qt'
|
||||||
def JENKINS_SSH_KEY = '35cefd32-dd99-41b0-8312-0b386df306ff'
|
def JENKINS_SSH_KEY = '35cefd32-dd99-41b0-8312-0b386df306ff'
|
||||||
def DL_SSH_KEY = '5825b39b-dfc6-435f-918e-12acc1f56221'
|
def DL_SSH_KEY = '5825b39b-dfc6-435f-918e-12acc1f56221'
|
||||||
def SNAPCRAFT_KEY = '106e398c-43ca-41c0-8f7e-4f45030f8bdd'
|
def SNAPCRAFT_KEY = '106e398c-43ca-41c0-8f7e-4f45030f8bdd'
|
||||||
|
def PACKAGING_DIR = 'extras/packaging/gnu-linux'
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
|
@ -122,7 +126,7 @@ See https://wiki.savoirfairelinux.com/wiki/Jenkins.jami.net#Configuration_client
|
||||||
steps {
|
steps {
|
||||||
sh """\
|
sh """\
|
||||||
#!/usr/bin/env -S bash -l
|
#!/usr/bin/env -S bash -l
|
||||||
make -f extras/packaging/gnu-linux/Makefile portable-release-tarball .tarball-version
|
make -f ${PACKAGING_DIR}/Makefile portable-release-tarball .tarball-version
|
||||||
"""
|
"""
|
||||||
stash(includes: '*.tar.gz, .tarball-version',
|
stash(includes: '*.tar.gz, .tarball-version',
|
||||||
name: 'release-tarball')
|
name: 'release-tarball')
|
||||||
|
@ -141,7 +145,8 @@ make -f extras/packaging/gnu-linux/Makefile portable-release-tarball .tarball-ve
|
||||||
echo "Publishing to git repository..."
|
echo "Publishing to git repository..."
|
||||||
script {
|
script {
|
||||||
def wantedTag = "${params.CHANNEL}/" + sh (
|
def wantedTag = "${params.CHANNEL}/" + sh (
|
||||||
script: "./extras/packaging/gnu-linux/scripts/release-version.sh ${params.CHANNEL}",
|
script: "${PACKAGING_DIR}/scripts/release-version.sh" +
|
||||||
|
" ${params.CHANNEL}",
|
||||||
returnStdout: true
|
returnStdout: true
|
||||||
).trim()
|
).trim()
|
||||||
sh """
|
sh """
|
||||||
|
@ -170,8 +175,10 @@ make -f extras/packaging/gnu-linux/Makefile portable-release-tarball .tarball-ve
|
||||||
script {
|
script {
|
||||||
def targetsText = params.PACKAGING_TARGETS.trim()
|
def targetsText = params.PACKAGING_TARGETS.trim()
|
||||||
if (!targetsText) {
|
if (!targetsText) {
|
||||||
targetsText = sh(script: 'make -f extras/packaging/gnu-linux/Makefile -s list-package-targets',
|
targetsText = sh(
|
||||||
returnStdout: true).trim()
|
script: "make -f ${PACKAGING_DIR}/Makefile" +
|
||||||
|
' -s list-package-targets',
|
||||||
|
returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
TARGETS = targetsText.split(/\s/)
|
TARGETS = targetsText.split(/\s/)
|
||||||
|
@ -199,9 +206,9 @@ make -f extras/packaging/gnu-linux/Makefile portable-release-tarball .tarball-ve
|
||||||
echo Building on node \$NODE_NAME
|
echo Building on node \$NODE_NAME
|
||||||
whoami
|
whoami
|
||||||
tar xf *.tar.gz --strip-components=1
|
tar xf *.tar.gz --strip-components=1
|
||||||
make -f extras/packaging/gnu-linux/Makefile ${target}
|
make -f ${PACKAGING_DIR}/Makefile ${target}
|
||||||
"""
|
"""
|
||||||
stash(includes: 'extras/packaging/gnu-linux/packages/**',
|
stash(includes: "${PACKAGING_DIR}/packages/**",
|
||||||
name: target)
|
name: target)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -236,15 +243,18 @@ make -f extras/packaging/gnu-linux/Makefile portable-release-tarball .tarball-ve
|
||||||
}
|
}
|
||||||
|
|
||||||
def distributionsText = sh(
|
def distributionsText = sh(
|
||||||
script: 'find extras/packaging/gnu-linux/packages/* -maxdepth 1 -type d -print0 ' +
|
script: "find ${PACKAGING_DIR}/packages/* " +
|
||||||
|
'-maxdepth 1 -type d -print0 ' +
|
||||||
'| xargs -0 -n1 basename -z',
|
'| xargs -0 -n1 basename -z',
|
||||||
returnStdout: true).trim()
|
returnStdout: true).trim()
|
||||||
def distributions = distributionsText.split("\0")
|
def distributions = distributionsText.split("\0")
|
||||||
|
|
||||||
distributions.each { distribution ->
|
distributions.each { distribution ->
|
||||||
echo "Deploying ${distribution} packages..."
|
echo "Deploying ${distribution} packages..."
|
||||||
withCredentials([string(credentialsId: SNAPCRAFT_KEY, variable: 'SNAPCRAFT_STORE_CREDENTIALS')]) {
|
withCredentials(
|
||||||
sh """extras/packaging/gnu-linux/scripts/deploy-packages.sh \
|
[string(credentialsId: SNAPCRAFT_KEY,
|
||||||
|
variable: 'SNAPCRAFT_STORE_CREDENTIALS')]) {
|
||||||
|
sh """${PACKAGING_DIR}/scripts/deploy-packages.sh \
|
||||||
--distribution=${distribution} \
|
--distribution=${distribution} \
|
||||||
--keyid="${JAMI_PUBLIC_KEY_FINGERPRINT}" \
|
--keyid="${JAMI_PUBLIC_KEY_FINGERPRINT}" \
|
||||||
--remote-repository-location="${REMOTE_HOST}:${REMOTE_BASE_DIR}/${params.CHANNEL}" \
|
--remote-repository-location="${REMOTE_HOST}:${REMOTE_BASE_DIR}/${params.CHANNEL}" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue