test scp1
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:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -11,8 +11,8 @@ pipeline {
|
||||
stage('Build Frontend') {
|
||||
steps {
|
||||
script{
|
||||
def SCRIPT_OUTPUT = sh (script: 'sudo bash ./jenkins/buildFrontend.sh ${BRANCH_NAME}',returnStdout: true)
|
||||
echo "Script Output: ${SCRIPT_OUTPUT}"
|
||||
def SCRIPT_OUTPUT1 = sh (script: 'sudo bash ./jenkins/buildFrontend.sh ${BRANCH_NAME}',returnStdout: true)
|
||||
echo "Script Output: ${SCRIPT_OUTPUT1}"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,10 @@ pipeline {
|
||||
AN_ACCESS_KEY = credentials('3885a64d-7d43-42c2-a713-c8600b44842f')
|
||||
}
|
||||
steps {
|
||||
sh 'sudo bash ./jenkins/deployBackend.sh'
|
||||
script{
|
||||
def SCRIPT_OUTPUT2 = sh (script: 'sudo bash ./jenkins/deployBackend.sh ${BRANCH_NAME}',returnStdout: true)
|
||||
echo "Script Output: ${SCRIPT_OUTPUT2}"
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Deploy Frontend') {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if test "$1" = "edit-jenkinsfile"
|
||||
then
|
||||
echo 'Copy backend to OlberryPi'
|
||||
scp -r /backend/. simco-jenkins@gitea.oliver.boehlk.io:~/simco-dashboard/backend
|
||||
else
|
||||
echo "Skipping for non-master branch"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user