test9
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
All checks were successful
SimcoDash/simcompanies-dashboard/pipeline/head This commit looks good
This commit is contained in:
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@@ -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()
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user