mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-14 19:33:10 +00:00
52 lines
914 B
Groovy
52 lines
914 B
Groovy
#!/usr/bin/env groovy
|
|
library 'status-jenkins-lib@v1.9.37'
|
|
|
|
pipeline {
|
|
agent {
|
|
docker {
|
|
label 'linuxcontainer'
|
|
image 'harbor.status.im/infra/ci-build-containers:linux-base-1.0.0'
|
|
args '--volume=/nix:/nix ' +
|
|
'--volume=/etc/nix:/etc/nix '
|
|
}
|
|
}
|
|
|
|
options {
|
|
timestamps()
|
|
ansiColor('xterm')
|
|
timeout(time: 20, unit: 'MINUTES')
|
|
disableConcurrentBuilds()
|
|
disableRestartFromStage()
|
|
/* manage how many builds we keep */
|
|
buildDiscarder(logRotator(
|
|
numToKeepStr: '20',
|
|
daysToKeepStr: '30',
|
|
))
|
|
}
|
|
|
|
stages {
|
|
stage('Build') {
|
|
steps {
|
|
script {
|
|
nix.flake("default")
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Check') {
|
|
steps {
|
|
script {
|
|
sh './result/bin/storage --version'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
cleanup {
|
|
cleanWs()
|
|
dir(env.WORKSPACE_TMP) { deleteDir() }
|
|
}
|
|
}
|
|
}
|