Files
status-react/ci/Jenkinsfile.linux
T

85 lines
1.8 KiB
Plaintext
Raw Normal View History

pipeline {
2018-09-25 20:01:48 +03:00
agent {
2018-09-05 14:17:25 -04:00
/* privileged mode is necessary for fuse */
docker {
label 'linux-new'
image 'statusteam/linux-desktop-ubuntu:qt-5.11.2'
2018-09-05 14:17:25 -04:00
args (
2018-09-25 20:01:48 +03:00
"--privileged "+
2018-09-05 14:17:25 -04:00
"-v /dev/fuse:/dev/fuse "+
"-v /var/tmp/lein:/var/tmp/lein:rw "+
"-v /var/tmp/npm:/var/tmp/npm:rw "+
"-v /opt/StatusImAppImage.zip:/opt/StatusImAppImage.zip:ro"
)
}
}
options {
2018-10-30 10:38:52 +01:00
/* Prevent Jenkins jobs from running forever */
timeout(time: 25, unit: 'MINUTES')
/* Limit builds retained */
buildDiscarder(logRotator(
2018-10-30 10:38:52 +01:00
numToKeepStr: '60',
daysToKeepStr: '30',
2018-10-30 10:38:52 +01:00
artifactNumToKeepStr: '60',
))
}
2018-09-25 20:01:48 +03:00
2018-09-05 14:17:25 -04:00
/**
* WARNING: Jenkins ignores PATH changes in Docker
* https://issues.jenkins-ci.org/browse/JENKINS-49076
**/
environment {
2018-09-18 08:22:30 -04:00
BUILD_PLATFORM = 'linux'
LANG = 'en_US.UTF-8'
LANGUAGE = 'en_US.UTF-8'
LC_ALL = 'en_US.UTF-8'
2018-09-05 14:17:25 -04:00
NPM_CONFIG_CACHE = '/var/tmp/npm'
LEIN_HOME = '/var/tmp/lein'
QT_PATH = '/opt/qt'
2018-09-13 11:44:33 +02:00
STATUSIM_APPIMAGE = '/opt/StatusImAppImage.zip'
}
2018-09-25 20:01:48 +03:00
stages {
stage('Prep') {
steps {
script {
/* Necessary to load methods */
desktop = load 'ci/desktop.groovy'
2018-08-29 09:43:21 +02:00
cmn = load 'ci/common.groovy'
2018-09-05 14:17:25 -04:00
sh 'env'
desktop.prepDeps()
}
}
}
2018-09-25 20:01:48 +03:00
stage('Lint') {
steps {
script { cmn.runLint() }
}
}
stage('Tests') {
steps {
script { cmn.runTests() }
}
}
stage('Build') {
steps {
script { desktop.buildClojureScript() }
}
}
stage('Compile') {
steps {
2018-09-13 11:44:33 +02:00
script { desktop.compile() }
}
}
stage('Bundle') {
steps {
2018-08-29 09:43:21 +02:00
script { app = desktop.bundleLinux(cmn.getBuildType()) }
}
}
stage('Archive') {
steps { archiveArtifacts app }
}
}
}