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

This commit is contained in:
2020-05-13 21:29:07 +02:00
parent dd219e2cc6
commit a681730989
2 changed files with 7 additions and 3 deletions

5
Jenkinsfile vendored
View File

@@ -16,6 +16,11 @@ pipeline {
sh 'echo $AN_ACCESS_KEY'
sh 'echo $BRANCH_NAME'
sh 'sudo bash ./jenkins/buildFrontend.sh'
SCRIPT_OUTPUT = sh (
script: 'sudo bash ./jenkins/buildFrontend.sh',
returnStdout: true
).trim()
echo "Script Output: ${SCRIPT_OUTPUT}"
}
}
stage('Deploy Backend') {

View File

@@ -1,9 +1,8 @@
#!/usr/bin/env sh
echo $BRANCH_NAME
echo $PWD
cd ./frontend
if [$BRANCH_NAME = "edit-jenkinsfile"]; then
echo "$BRANCH_NAME"
if ["$BRANCH_NAME" = "edit-jenkinsfile"]; then
echo 'Install neccessary Packages'
yarn install
echo 'Build Frontend for Production'