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:
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -2,10 +2,26 @@ pipeline {
|
||||
agent any
|
||||
|
||||
stages {
|
||||
stage('Do nothing') {
|
||||
stage('Environment') {
|
||||
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