AriaOS/Jenkinsfile
zontreck 153fbc4104 ci(jenkins): print current user before trying to make iso
Signed-off-by: zontreck <tarapiccari@gmail.com>
2024-10-06 03:03:56 -07:00

56 lines
No EOL
1 KiB
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
echo -ne "I am user "
whoami
mkarchiso -v -w work -o out server
'''
}
}
post {
always {
archiveArtifacts artifacts: "out/*.iso"
}
}
}
}
}