Files
dashboard/Jenkinsfile
Hawk 39bea9a9d5
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
test14
2020-05-13 22:04:02 +02:00

32 lines
775 B
Groovy

pipeline {
agent any
stages {
stage('Environment') {
steps {
sh 'git --version'
sh 'printenv'
}
}
stage('Build Frontend') {
environment {
AN_ACCESS_KEY = credentials('3885a64d-7d43-42c2-a713-c8600b44842f')
}
steps {
sh 'echo $BRANCH_NAME'
sh 'sudo bash ./jenkins/buildFrontend.sh ${BRANCH_NAME}'
}
}
stage('Deploy Backend') {
steps {
sh 'sudo bash ./jenkins/deployBackend.sh'
}
}
stage('Deploy Frontend') {
steps {
sh 'sudo bash ./jenkins/deployFrontend.sh'
}
}
}
}