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')
}
steps {
sh 'echo $AN_ACCESS_KEY'
sh 'echo $BRANCH_NAME'
script{
def SCRIPT_OUTPUT = sh (script: 'sudo bash ./jenkins/buildFrontend.sh',returnStdout: true).trim()

View File

@@ -2,11 +2,12 @@
cd ./frontend
echo "$BRANCH_NAME"
if ["$BRANCH_NAME" = "edit-jenkinsfile"]; then
if test "$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'
echo 'Not in master branch'
fi