test
Some checks failed
SimcoDash/simcompanies-dashboard/pipeline/head There was a failure building this commit

This commit is contained in:
2020-05-13 20:48:01 +02:00
parent a6a68a3ead
commit 9ad59e2143
2 changed files with 9 additions and 6 deletions

1
Jenkinsfile vendored
View File

@@ -6,6 +6,7 @@ pipeline {
steps {
sh 'git --version'
sh 'printenv'
sh '$env.BRANCH_NAME'
}
}
stage('Build Frontend') {

View File

@@ -1,9 +1,11 @@
#!/usr/bin/env sh
cd ../frontend
echo 'Install neccessary Packages'
yarn install
echo ''
yarn run build
if [$env.BRANCH_NAME = "edit-jenkinsfile"]; then
echo 'Install neccessary Packages'
yarn install
echo 'Build Frontend for Production'
yarn run build
else
echo 'Not in master Branch'
fi