test10
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:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -15,7 +15,7 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
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)
|
||||||
echo "Script Output: ${SCRIPT_OUTPUT}"
|
echo "Script Output: ${SCRIPT_OUTPUT}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
cd ./frontend
|
cd ./Frontend
|
||||||
echo "$BRANCH_NAME"
|
|
||||||
if test "$BRANCH_NAME" = "edit-jenkinsfile"
|
if test "$BRANCH_NAME" = "edit-jenkinsfile"
|
||||||
then
|
then
|
||||||
echo 'Install neccessary Packages'
|
echo 'Install neccessary Packages'
|
||||||
@@ -9,5 +9,5 @@ then
|
|||||||
echo 'Build Frontend for Production'
|
echo 'Build Frontend for Production'
|
||||||
yarn run build
|
yarn run build
|
||||||
else
|
else
|
||||||
echo 'Not in master branch'
|
echo "$BRANCH_NAME"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user