Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
7b831d65
Commit
7b831d65
authored
5 years ago
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed jenkinsfile to use docker
parent
9c4d5d93
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
82 deletions
+53
-82
Jenkinsfile
Jenkinsfile
+51
-35
workspace.xml
drip-planner/.idea/workspace.xml
+1
-3
jenkins_pipeline
jenkins_pipeline
+0
-43
Dockerfile
sure_tosca-flask-server/Dockerfile
+1
-1
No files found.
Jenkinsfile
View file @
7b831d65
pipeline
{
agent
none
stages
{
stage
(
'Build java-code'
)
{
agent
any
tools
{
// Install the Maven version configured as "M3" and add it to the path.
maven
"maven-3.6.2"
jdk
"openjdk-11"
}
stages
{
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.7 -m venv venv && venv/bin/pip3 install -r requirements.txt"
}
}
stage
(
'Build python-code'
)
{
agent
{
docker
{
image
'python:3.7-buster'
}
}
steps
{
sh
'cd drip-planner && python3.7 -m venv venv && venv/bin/pip3 install -r requirements.txt'
sh
"cd ../"
sh
"cd sure_tosca-flask-server && python3.7 -m venv venv && venv/bin/pip3 install -r requirements.txt && venv/bin/pip3 install -r test-requirements.txt"
sh
"pwd && ls"
}
}
stage
(
'Test'
)
{
stage
(
'Test java-code'
)
{
agent
any
tools
{
maven
"maven-3.6.2"
jdk
"openjdk-11"
}
steps
{
echo
'Testing'
sh
"mvn test"
}
}
stage
(
'Test python-code'
)
{
agent
{
docker
{
image
'python:3.7-buster'
}
}
steps
{
sh
"cd drip-planner && venv/bin/python3.7 -m unittest discover"
sh
"cd sure_tosca-flask-server && venv/bin/python3.7 -m unittest discover"
}
}
stage
(
'Package'
)
{
stage
(
'Package java-code'
)
{
agent
any
tools
{
maven
"maven-3.6.2"
jdk
"openjdk-11"
}
steps
{
echo
'Deploying'
sh
"cd drip-manager && mvn -Dmaven.test.skip=true install dockerfile:build"
sh
"cd ../"
sh
"cd sure_tosca-flask-server && docker build -t sure-tosca:3.0.0 ."
sh
"cd ../"
sh
"cd drip-planner && docker build -t drip-planner:3.0.0 ."
}
}
stage
(
'Deploy'
)
{
stage
(
'Package python-code'
)
{
agent
any
steps
{
echo
'Deploying'
sh
"cd sure_tosca-flask-server && docker build -t sure-tosca:3.0.0 ."
sh
"cd ../"
sh
"cd drip-planner && docker build -t drip-planner:3.0.0 ."
}
}
}
...
...
This diff is collapsed.
Click to expand it.
drip-planner/.idea/workspace.xml
View file @
7b831d65
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
</list>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
This diff is collapsed.
Click to expand it.
jenkins_pipeline
deleted
100644 → 0
View file @
9c4d5d93
pipeline {
agent any
tools {
// Install the Maven version configured as "M3" and add it to the path.
maven "maven-3.6.2"
jdk "openjdk-11"
}
stages {
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"
sh "pwd && ls"
}
}
stage('Test') {
steps {
echo 'Testing'
//sh "mvn test"
//sh "cd drip-planner && 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') {
steps {
echo 'Deploying'
}
}
}
}
This diff is collapsed.
Click to expand it.
sure_tosca-flask-server/Dockerfile
View file @
7b831d65
FROM
python:3.7-
alpine
FROM
python:3.7-
buster
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment