test7
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:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -16,6 +16,11 @@ pipeline {
|
|||||||
sh 'echo $AN_ACCESS_KEY'
|
sh 'echo $AN_ACCESS_KEY'
|
||||||
sh 'echo $BRANCH_NAME'
|
sh 'echo $BRANCH_NAME'
|
||||||
sh 'sudo bash ./jenkins/buildFrontend.sh'
|
sh 'sudo bash ./jenkins/buildFrontend.sh'
|
||||||
|
SCRIPT_OUTPUT = sh (
|
||||||
|
script: 'sudo bash ./jenkins/buildFrontend.sh',
|
||||||
|
returnStdout: true
|
||||||
|
).trim()
|
||||||
|
echo "Script Output: ${SCRIPT_OUTPUT}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Deploy Backend') {
|
stage('Deploy Backend') {
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
echo $BRANCH_NAME
|
|
||||||
echo $PWD
|
|
||||||
cd ./frontend
|
cd ./frontend
|
||||||
if [$BRANCH_NAME = "edit-jenkinsfile"]; then
|
echo "$BRANCH_NAME"
|
||||||
|
if ["$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'
|
||||||
|
|||||||
Reference in New Issue
Block a user