rm Jenkinsfile

master
Niclas Thobaben 2021-12-26 22:31:30 +01:00
parent 0474648fa9
commit b2c947a15e
1 changed files with 0 additions and 41 deletions

41
Jenkinsfile vendored
View File

@ -1,41 +0,0 @@
pipeline {
agent {
node {
label 'api'
}
}
environment {
VERSION='0.0.1'
}
stages {
stage("Checks") {
steps {
sh '''
for file in ./specs/*; do
apicli lint --spec=$file;
done
'''
}
}
stage("Deploy Spec") {
when{
allOf {
expression { env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'staging' }
}
}
steps {
script {
VERSION_STR = env.BRANCH_NAME == 'staging' ? env.VERSION + '-dev' : env.VERSION
}
sh 'chmod +x ./upload-specs.sh'
sh "./upload-specs.sh $VERSION_STR"
}
}
}
post {
always {
cleanWs()
}
}
}