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 $BRANCH_NAME'
|
||||
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') {
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
echo $BRANCH_NAME
|
||||
echo $PWD
|
||||
cd ./frontend
|
||||
if [$BRANCH_NAME = "edit-jenkinsfile"]; then
|
||||
echo "$BRANCH_NAME"
|
||||
if ["$BRANCH_NAME" = "edit-jenkinsfile"]; then
|
||||
echo 'Install neccessary Packages'
|
||||
yarn install
|
||||
echo 'Build Frontend for Production'
|
||||
|
||||
Reference in New Issue
Block a user