diff --git a/Jenkinsfile b/Jenkinsfile index fae8c59..e0fc93d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,24 +31,27 @@ pipeline { } } steps { - stage('init') { - steps { - sh "apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev" - sh "git clone https://github.com/ashinn/chibi-scheme.git --depth=1" - sh "make -j8 -C chibi-scheme" - sh "make -j8 -C chibi-scheme install" - sh "snow-chibi install retropikzel.compile-r7rs" - } - } - stage('tap') { - catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { - sh "make SCHEME=chibi LIBRARY=tap all install test" + script { + ยดยดยด + apt-get update && apt-get install -y git ca-certificates gcc make libffi-dev + git clone https://github.com/ashinn/chibi-scheme.git --depth=1 + make -j8 -C chibi-scheme + make -j8 -C chibi-scheme install + snow-chibi install retropikzel.compile-r7rs + make SCHEME=chibi LIBRARY=tap all install test + ```.split("\n").each { cmd -> + stage("${cmd}") { + catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') { + sh "${cmd}" + } + } } } } } } + post { success { cleanWs()