Commit ea45b184 authored by Spiros Koulouzis's avatar Spiros Koulouzis

new Jenkinsfile

parent 23741a2f
node {
stage('Clone sources') {
git branch: 'DRIP_3.0', url: 'https://github.com/skoulouzis/DRIP.git'
}
stage('Build') {
steps {
echo 'Building'
git branch: 'DRIP_3.0', url: 'https://github.com/skoulouzis/DRIP.git'
sh "mvn -Dmaven.test.skip=true install"
sh "cd drip-planner && python3 -m venv venv && venv/bin/pip3 install -r requirements.txt"
sh "cd ../"
sh "cd sure_tosca-flask-server && python3 -m venv venv && venv/bin/pip3 install -r requirements.txt && venv/bin/pip3 install -r test-requirements.txt"
}
}
}
./setuptools-40.8.0-py3.6.egg
./pip-19.0.3-py3.6.egg
This diff is collapsed.
pipeline { pipeline {
agent any agent any
tools { tools {
// Install the Maven version configured as "M3" and add it to the path. // Install the Maven version configured as "M3" and add it to the path.
maven "maven-3.6.2" maven "maven-3.6.2"
...@@ -22,9 +21,16 @@ pipeline { ...@@ -22,9 +21,16 @@ pipeline {
stage('Test') { stage('Test') {
steps { steps {
echo 'Testing' echo 'Testing'
sh "mvn test" //sh "mvn test"
sh "cd drip-planner && venv/bin/python3 -m unittest discover" //sh "cd drip-planner && venv/bin/python3 -m unittest discover"
sh "cd sure_tosca-flask-server && venv/bin/python3 -m unittest discover" //sh "cd sure_tosca-flask-server && venv/bin/python3 -m unittest discover"
}
}
stage('Package') {
steps {
echo 'Deploying'
sh "cd drip-manager && mvn -Dmaven.test.skip=true install dockerfile:build"
} }
} }
stage('Deploy') { stage('Deploy') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment