test10
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good

This commit is contained in:
2020-05-13 21:41:04 +02:00
parent b81cb7f3e6
commit 0c540cf903
2 changed files with 4 additions and 4 deletions

2
Jenkinsfile vendored
View File

@@ -15,7 +15,7 @@ pipeline {
steps {
sh 'echo $BRANCH_NAME'
script{
def SCRIPT_OUTPUT = sh (script: 'sudo bash ./jenkins/buildFrontend.sh',returnStdout: true).trim()
def SCRIPT_OUTPUT = sh (script: 'sudo bash ./jenkins/buildFrontend.sh',returnStdout: true)
echo "Script Output: ${SCRIPT_OUTPUT}"
}
}

View File

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