mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-17 04:43:08 +00:00
45 lines
746 B
Groovy
45 lines
746 B
Groovy
#!/usr/bin/env groovy
|
|
library 'status-jenkins-lib@v1.9.37'
|
|
|
|
pipeline {
|
|
agent { label 'macos && aarch64 && 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() }
|
|
}
|
|
}
|
|
}
|