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

This commit is contained in:
2020-05-13 21:39:04 +02:00
parent ff8a2a9dad
commit b81cb7f3e6
2 changed files with 3 additions and 3 deletions

1
Jenkinsfile vendored
View File

@@ -13,7 +13,6 @@ pipeline {
AN_ACCESS_KEY = credentials('3885a64d-7d43-42c2-a713-c8600b44842f') AN_ACCESS_KEY = credentials('3885a64d-7d43-42c2-a713-c8600b44842f')
} }
steps { steps {
sh 'echo $AN_ACCESS_KEY'
sh 'echo $BRANCH_NAME' sh 'echo $BRANCH_NAME'
script{ 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).trim()

View File

@@ -2,11 +2,12 @@
cd ./frontend cd ./frontend
echo "$BRANCH_NAME" echo "$BRANCH_NAME"
if ["$BRANCH_NAME" = "edit-jenkinsfile"]; then if test "$BRANCH_NAME" = "edit-jenkinsfile"
then
echo 'Install neccessary Packages' echo 'Install neccessary Packages'
yarn install yarn install
echo 'Build Frontend for Production' echo 'Build Frontend for Production'
yarn run build yarn run build
else else
echo 'Not in master Branch' echo 'Not in master branch'
fi fi