ci(jenkins): add jenkinsfile
Signed-off-by: zontreck <tarapiccari@gmail.com>
This commit is contained in:
parent
6856542e66
commit
5ca46c536a
1 changed files with 42 additions and 0 deletions
42
Jenkinsfile
vendored
Normal file
42
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,42 @@
|
|||
pipeline {
|
||||
agent any
|
||||
|
||||
options {
|
||||
buildDiscarder(
|
||||
logRotator(
|
||||
numToKeepStr: '5'
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage("Clean Up") {
|
||||
agent {
|
||||
label 'arch'
|
||||
}
|
||||
|
||||
steps {
|
||||
script '''
|
||||
#!/bin/bash
|
||||
|
||||
git clean -xfd
|
||||
git reset --hard
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
stage("Build ISO") {
|
||||
agent {
|
||||
label 'arch'
|
||||
}
|
||||
|
||||
steps {
|
||||
script '''
|
||||
#!/bin/bash
|
||||
|
||||
mkarchiso -v -w work -o out server
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue