53 lines
No EOL
966 B
Groovy
53 lines
No EOL
966 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
options {
|
|
buildDiscarder(
|
|
logRotator(
|
|
numToKeepStr: '5'
|
|
)
|
|
)
|
|
}
|
|
|
|
stages {
|
|
stage("Clean Up") {
|
|
agent {
|
|
label 'arch'
|
|
}
|
|
|
|
steps {
|
|
script {
|
|
sh '''
|
|
#!/bin/bash
|
|
|
|
git clean -xfd
|
|
git reset --hard
|
|
'''
|
|
}
|
|
}
|
|
}
|
|
|
|
stage("Build ISO") {
|
|
agent {
|
|
label 'arch'
|
|
}
|
|
|
|
steps {
|
|
script {
|
|
sh '''
|
|
#!/bin/bash
|
|
|
|
mkarchiso -v -w work -o out server
|
|
|
|
'''
|
|
}
|
|
}
|
|
|
|
post {
|
|
always {
|
|
archiveArtifacts artifacts: "out/*.iso"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |