test12
Some checks failed
SimcoDash/simcompanies-dashboard/pipeline/head There was a failure building this commit
Some checks failed
SimcoDash/simcompanies-dashboard/pipeline/head There was a failure building this commit
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -15,7 +15,8 @@ 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)
|
|
||||||
|
def SCRIPT_OUTPUT = sh (script: 'bash -c \" source ./jenkins/buildFrontend.sh ${BRANCH_NAME}\""',returnStdout: true)
|
||||||
echo "Script Output: ${SCRIPT_OUTPUT}"
|
echo "Script Output: ${SCRIPT_OUTPUT}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,5 +9,5 @@ then
|
|||||||
echo 'Build Frontend for Production'
|
echo 'Build Frontend for Production'
|
||||||
yarn run build
|
yarn run build
|
||||||
else
|
else
|
||||||
echo "$env.BRANCH_NAME"
|
echo $BRANCH_NAME
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user