edit-jenkinsfile #71

Merged
oliver merged 25 commits from edit-jenkinsfile into master 2020-05-15 22:23:34 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit b81cb7f3e6 - Show all commits

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