mirror of
https://github.com/truenas/core-build.git
synced 2026-02-14 23:28:44 +00:00
Update to latest Jenkins pipeline code
This commit is contained in:
49
Jenkinsfile
vendored
49
Jenkinsfile
vendored
@@ -1,21 +1,40 @@
|
||||
node('FreeNAS-ISO') {
|
||||
stage('Checkout') {
|
||||
checkout scm
|
||||
pipeline {
|
||||
agent none
|
||||
|
||||
environment {
|
||||
GH_ORG = 'freenas'
|
||||
GH_REPO = 'build'
|
||||
}
|
||||
withEnv(['GH_ORG=freenas','GH_REPO=build']) {
|
||||
stage('ixbuild') {
|
||||
echo 'Starting iXBuild Framework pipeline'
|
||||
try {
|
||||
sh '/ixbuild/jenkins.sh freenas freenas-pipeline'
|
||||
} catch (exc) {
|
||||
echo 'Saving failed artifacts...'
|
||||
archiveArtifacts artifacts: 'artifacts/**', fingerprint: true
|
||||
throw exc
|
||||
stages {
|
||||
|
||||
stage('Queued') {
|
||||
agent {
|
||||
label 'JenkinsMaster'
|
||||
}
|
||||
steps {
|
||||
echo "Build queued"
|
||||
}
|
||||
}
|
||||
stage('artifact') {
|
||||
archiveArtifacts artifacts: 'artifacts/**', fingerprint: true
|
||||
junit 'results/**'
|
||||
|
||||
stage('ixbuild') {
|
||||
agent {
|
||||
label 'FreeNAS-ISO'
|
||||
}
|
||||
post {
|
||||
success {
|
||||
archiveArtifacts artifacts: 'artifacts/**', fingerprint: true
|
||||
junit 'results/**'
|
||||
}
|
||||
failure {
|
||||
echo 'Saving failed artifacts...'
|
||||
archiveArtifacts artifacts: 'artifacts/**', fingerprint: true
|
||||
}
|
||||
}
|
||||
steps {
|
||||
checkout scm
|
||||
echo 'Starting iXBuild Framework pipeline'
|
||||
sh '/ixbuild/jenkins.sh freenas freenas-pipeline'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user