test
Some checks failed
SimcoDash/simcompanies-dashboard/pipeline/head There was a failure building this commit
Some checks failed
SimcoDash/simcompanies-dashboard/pipeline/head There was a failure building this commit
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -6,6 +6,7 @@ pipeline {
|
||||
steps {
|
||||
sh 'git --version'
|
||||
sh 'printenv'
|
||||
sh '$env.BRANCH_NAME'
|
||||
}
|
||||
}
|
||||
stage('Build Frontend') {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user