2024-10-05 22:31:58 -07:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
options {
|
|
|
|
buildDiscarder(
|
|
|
|
logRotator(
|
|
|
|
numToKeepStr: '5'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage("Clean Up") {
|
|
|
|
agent {
|
|
|
|
label 'arch'
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
2024-10-05 22:36:00 -07:00
|
|
|
script {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
2024-10-05 22:31:58 -07:00
|
|
|
|
2024-10-05 22:36:00 -07:00
|
|
|
git clean -xfd
|
|
|
|
git reset --hard
|
|
|
|
'''
|
|
|
|
}
|
2024-10-05 22:31:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage("Build ISO") {
|
|
|
|
agent {
|
|
|
|
label 'arch'
|
|
|
|
}
|
|
|
|
|
|
|
|
steps {
|
2024-10-05 22:36:00 -07:00
|
|
|
script {
|
|
|
|
sh '''
|
|
|
|
#!/bin/bash
|
2024-10-05 22:31:58 -07:00
|
|
|
|
2024-10-06 02:35:27 -07:00
|
|
|
mkarchiso -v -w "$(pwd)/work" -o out "$(pwd)/server"
|
2024-10-05 22:36:00 -07:00
|
|
|
'''
|
|
|
|
}
|
2024-10-05 22:31:58 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|