From 136b5efb602e198a554db358cecdf7d246540873 Mon Sep 17 00:00:00 2001 From: retropikzel Date: Thu, 11 Dec 2025 10:44:55 +0200 Subject: [PATCH] Adding release builds --- Jenkinsfile | 45 ++++++++++++++++++++++----------------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d69ac2b..1bfc231 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,19 +3,19 @@ pipeline { agent { dockerfile { label 'docker-x86_64' - filename 'Dockerfile.jenkins' - args '--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock' + filename 'Dockerfile.jenkins' + args '--user=root --privileged -v /var/run/docker.sock:/var/run/docker.sock' } } options { disableConcurrentBuilds() - buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) + buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10')) } parameters { string(name: 'R6RS_SCHEMES', defaultValue: 'capyscheme chezscheme guile ikarus ironscheme larceny loko mosh racket sagittarius ypsilon', description: '') - string(name: 'R7RS_SCHEMES', defaultValue: 'capyscheme chibi chicken cyclone gambit foment gauche guile kawa larceny loko meevax mit-scheme mosh racket sagittarius skint stklos tr7 ypsilon', description: '') + string(name: 'R7RS_SCHEMES', defaultValue: 'capyscheme chibi chicken cyclone gambit foment gauche guile kawa larceny loko meevax mit-scheme mosh racket sagittarius skint stklos tr7 ypsilon', description: '') } stages { @@ -23,34 +23,33 @@ pipeline { when { not { branch 'release' } } steps { sh "make build-chibi" - sh "make install" + sh "make install" } } - stage('Test') { + stage('R6RS') { when { not { branch 'release' } } - stage('R6RS') { - steps { - script { - R7RS_SCHEMES.split().each { SCHEME -> - stage("${SCHEME} R6RS") { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "make SCHEME=${SCHEME} test-r6rs-docker" - } + steps { + script { + R7RS_SCHEMES.split().each { SCHEME -> + stage("${SCHEME} R6RS") { + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + sh "make SCHEME=${SCHEME} test-r6rs-docker" } } } } } + } - stage('R7RS') { - steps { - script { - R7RS_SCHEMES.split().each { SCHEME -> - stage("${SCHEME} R7RS") { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "make SCHEME=${SCHEME} test-r7rs-docker" - } + stage('R7RS') { + when { not { branch 'release' } } + steps { + script { + R7RS_SCHEMES.split().each { SCHEME -> + stage("${SCHEME} R7RS") { + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + sh "make SCHEME=${SCHEME} test-r7rs-docker" } } } @@ -61,7 +60,7 @@ pipeline { stage('.deb package') { steps { sh "make deb" - archiveArtifacts artifacts: '*.deb', allowEmptyArchive: true, fingerprint: true, onlyIfSuccessful: true + archiveArtifacts artifacts: '*.deb', allowEmptyArchive: true, fingerprint: true, onlyIfSuccessful: true } } }