Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions ci/Jenkinsfile.android
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 45, unit: 'MINUTES')
Expand Down Expand Up @@ -52,6 +54,31 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Fetch submodules') {
steps {
sh 'git submodule update --init --recursive'
}
}

stage('Build Android APK') {
steps {
Expand Down
22 changes: 22 additions & 0 deletions ci/Jenkinsfile.combined
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pipeline {
agent { label 'linux' }

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
disableConcurrentBuilds()
disableRestartFromStage()
Expand All @@ -33,6 +35,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
24 changes: 23 additions & 1 deletion ci/Jenkinsfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 30, unit: 'MINUTES')
Expand All @@ -75,7 +77,7 @@ pipeline {
/* Avoid weird bugs caused by stale cache. */
QML_DISABLE_DISK_CACHE = "true"
/* Control output the filename */
VERSION = sh(script: "./scripts/version.sh", returnStdout: true).trim()
VERSION = "${sh(script: 'git fetch origin --tags --force --no-recurse-submodules && git describe --tags', returnStdout: true).trim()}${params.USE_NWAKU ? '-nwaku-experimental' : ''}"
STATUS_CLIENT_APPIMAGE = "pkg/${utils.pkgFilename(ext: 'AppImage', arch: getArch(), version: env.VERSION)}"
STATUS_CLIENT_TARBALL = "pkg/${utils.pkgFilename(ext: 'tar.gz', arch: getArch(), version: env.VERSION)}"
/* prevent sharing cache dir across different jobs */
Expand All @@ -94,6 +96,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
24 changes: 23 additions & 1 deletion ci/Jenkinsfile.linux-nix
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 30, unit: 'MINUTES')
Expand All @@ -63,7 +65,7 @@ pipeline {
/* Avoid weird bugs caused by stale cache. */
QML_DISABLE_DISK_CACHE = "true"
/* Control output the filename */
VERSION = sh(script: "./scripts/version.sh", returnStdout: true).trim()
VERSION = "${sh(script: 'git fetch origin --tags --force --no-recurse-submodules && git describe --tags', returnStdout: true).trim()}"
STATUS_CLIENT_APPIMAGE = "pkg/${utils.pkgFilename(ext: 'nix.AppImage', arch: getArch(), version: env.VERSION)}"
STATUS_CLIENT_TARBALL = "pkg/${utils.pkgFilename(ext: 'nix.tar.gz', arch: getArch(), version: env.VERSION)}"
/* prevent sharing cache dir across different jobs */
Expand All @@ -81,6 +83,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
24 changes: 23 additions & 1 deletion ci/Jenkinsfile.macos
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 30, unit: 'MINUTES')
Expand Down Expand Up @@ -81,7 +83,7 @@ pipeline {
/* Avoid weird bugs caused by stale cache. */
QML_DISABLE_DISK_CACHE = "true"
/* Control output the filename */
VERSION = sh(script: "./scripts/version.sh", returnStdout: true).trim()
VERSION = "${sh(script: 'git fetch origin --tags --force --no-recurse-submodules && git describe --tags', returnStdout: true).trim()}${params.USE_NWAKU ? '-nwaku-experimental' : ''}"
STATUS_CLIENT_DMG = "pkg/${utils.pkgFilename(ext: 'dmg', arch: getArch(), version: env.VERSION)}"
/* Apple Team ID for Notarization */
MACOS_NOTARIZE_TEAM_ID = "8B5X2M6H2Y"
Expand All @@ -101,6 +103,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
23 changes: 22 additions & 1 deletion ci/Jenkinsfile.qt-build
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
buildDiscarder(logRotator(numToKeepStr: '20'))
timestamps()
timeout(time: 12, unit: 'HOURS')
Expand Down Expand Up @@ -87,7 +89,26 @@ pipeline {
}

stages {

stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Build Docker Image for Linux') {
steps {
script {
Expand Down
22 changes: 22 additions & 0 deletions ci/Jenkinsfile.tests-e2e
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 120, unit: 'MINUTES')
Expand Down Expand Up @@ -103,6 +105,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
22 changes: 22 additions & 0 deletions ci/Jenkinsfile.tests-nim
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 20, unit: 'MINUTES')
Expand Down Expand Up @@ -60,6 +62,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
22 changes: 22 additions & 0 deletions ci/Jenkinsfile.tests-ui
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ pipeline {
}

options {
/* IMPORTANT: Disable automatic checkout to control submodule handling */
skipDefaultCheckout()
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 120, unit: 'MINUTES')
Expand Down Expand Up @@ -46,6 +48,26 @@ pipeline {
}

stages {
stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
branches: scm.branches,
doGenerateSubmoduleConfigurations: false,
extensions: [
[$class: 'SubmoduleOption',
disableSubmodules: false,
parentCredentials: true,
recursiveSubmodules: false,
reference: '',
trackingSubmodules: false
]
],
submoduleCfg: [],
userRemoteConfigs: scm.userRemoteConfigs
])
}
}
stage('Cleanup Workspace') {
steps {
sh './scripts/clean-git.sh'
Expand Down
Loading