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