2024-04-06 11:20:57 +00:00
|
|
|
library 'status-jenkins-lib@v1.9.3'
|
2022-06-03 16:59:21 +00:00
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent {
|
2024-02-13 18:48:50 +00:00
|
|
|
label 'linux && nix-2.19 && x86_64'
|
2022-06-03 16:59:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
disableConcurrentBuilds()
|
|
|
|
/* Prevent Jenkins jobs from running forever */
|
|
|
|
timeout(time: 30, unit: 'MINUTES')
|
|
|
|
/* Limit builds retained */
|
|
|
|
buildDiscarder(logRotator(
|
|
|
|
numToKeepStr: '10',
|
|
|
|
daysToKeepStr: '20',
|
|
|
|
artifactNumToKeepStr: '10',
|
|
|
|
))
|
|
|
|
}
|
|
|
|
|
|
|
|
environment {
|
|
|
|
TARGET = 'nix-flake'
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Node') {
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps { script {
|
2024-04-06 11:20:57 +00:00
|
|
|
nix.flake('node')
|
2022-06-03 16:59:21 +00:00
|
|
|
} }
|
|
|
|
}
|
|
|
|
stage('Check') {
|
|
|
|
steps {
|
|
|
|
sh './result/bin/waku --version'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Library') {
|
|
|
|
stages {
|
|
|
|
stage('Build') {
|
|
|
|
steps { script {
|
2024-04-06 11:20:57 +00:00
|
|
|
nix.flake('static-library')
|
2022-06-03 16:59:21 +00:00
|
|
|
} }
|
|
|
|
}
|
|
|
|
stage('Check') {
|
|
|
|
steps {
|
2024-04-06 11:20:57 +00:00
|
|
|
sh 'readelf -h ./result/bin/libgowaku.a'
|
2022-06-03 16:59:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
post {
|
|
|
|
always { script { /* No artifact but a PKG_URL is necessary. */
|
2023-04-03 15:28:16 +00:00
|
|
|
env.PKG_URL = "${currentBuild.absoluteUrl}consoleText"
|
2022-06-03 16:59:21 +00:00
|
|
|
} }
|
|
|
|
success { script { github.notifyPR(true) } }
|
|
|
|
failure { script { github.notifyPR(false) } }
|
|
|
|
cleanup { cleanWs() }
|
|
|
|
}
|
|
|
|
}
|