AriaOS/Jenkinsfile
zontreck ee790e55ec ci(jenkins): adjust some more build instructions
Signed-off-by: zontreck <tarapiccari@gmail.com>
2024-10-06 02:39:39 -07:00

50 lines
No EOL
969 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
mkdir -pv /tmp/archisotmp
cp -rv server /tmp/archisotmp/server
mkarchiso -v -w "/tmp/archisotmp/work" -o out "/tmp/archisotmp/server"
'''
}
}
}
}
}