added scripts
Some checks failed
SimcoDash/simcompanies-dashboard/pipeline/head There was a failure building this commit

This commit is contained in:
2020-05-13 00:02:31 +02:00
parent 8e3f53baca
commit a6a68a3ead
4 changed files with 28 additions and 3 deletions

20
Jenkinsfile vendored
View File

@@ -2,9 +2,25 @@ 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
View 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
View File

View File