Add a jenkinsfile
This commit is contained in:
parent
786efbc7b9
commit
0966d6b6de
1 changed files with 33 additions and 0 deletions
33
Jenkinsfile
vendored
Normal file
33
Jenkinsfile
vendored
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
options {
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: "5"))
|
||||||
|
}
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage ("Build on Linux") {
|
||||||
|
agent {
|
||||||
|
label "linux"
|
||||||
|
}
|
||||||
|
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
sh '''
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
chmod +x build.sh
|
||||||
|
./build.sh
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
always {
|
||||||
|
archiveArtifacts artifacts: "out/awsparser"
|
||||||
|
cleanWs()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue