added scripts
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:
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@@ -2,9 +2,25 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Do nothing') {
|
stage('Environment') {
|
||||||
steps {
|
steps {
|
||||||
sh '/bin/true'
|
sh 'git --version'
|
||||||
|
sh 'printenv'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Build Frontend') {
|
||||||
|
steps {
|
||||||
|
sh './jenkins/buildFrontend.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy Backend') {
|
||||||
|
steps {
|
||||||
|
sh './jenkins/deployBackend.sh'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Deploy Frontend') {
|
||||||
|
steps {
|
||||||
|
sh './jenkins/deployFrontend.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
9
jenkins/buildFrontend.sh
Normal file
9
jenkins/buildFrontend.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
cd ../frontend
|
||||||
|
|
||||||
|
echo 'Install neccessary Packages'
|
||||||
|
yarn install
|
||||||
|
|
||||||
|
echo ''
|
||||||
|
yarn run build
|
||||||
0
jenkins/deployBackend.sh
Normal file
0
jenkins/deployBackend.sh
Normal file
0
jenkins/deployFrontend.sh
Normal file
0
jenkins/deployFrontend.sh
Normal file
Reference in New Issue
Block a user