Files
roadmap/Jenkinsfile
Jakub Sokołowski 94db9872db add flake.nix and adjust Jenkinsfile to use Nix
More deterministic and stable build.

Also adde `build.json` for easy version checking.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2024-09-30 19:41:13 +02:00

49 lines
975 B
Groovy

#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.9.10'
pipeline {
agent {
label 'linux'
}
options {
timestamps()
/* Prevent Jenkins jobs from running forever */
timeout(time: 10, unit: 'MINUTES')
/* manage how many builds we keep */
buildDiscarder(logRotator(
numToKeepStr: '20',
daysToKeepStr: '30',
))
disableConcurrentBuilds()
}
environment {
GIT_COMMITTER_NAME = 'status-im-auto'
GIT_COMMITTER_EMAIL = 'auto@status.im'
}
stages {
stage('Deps') {
steps { script {
nix.develop('npm install')
} }
}
stage('Build') {
steps { script {
nix.develop('npx quartz build')
jenkins.genBuildMetaJSON('public/build.json')
} }
}
stage('Publish Prod') {
steps { script {
sshagent(credentials: ['status-im-auto-ssh']) {
nix.develop('ghp-import -c roadmap.vac.dev -p public', pure: false)
}
} }
}
}
}