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
Nov 11, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed jenkinsfile to use docker
parent
9c4d5d93
Changes
4
Hide 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
{
pipeline
{
agent
any
agent
none
tools
{
stages
{
// Install the Maven version configured as "M3" and add it to the path.
stage
(
'Build java-code'
)
{
maven
"maven-3.6.2"
agent
any
jdk
"openjdk-11"
tools
{
}
maven
"maven-3.6.2"
jdk
"openjdk-11"
stages
{
}
stage
(
'Build'
)
{
steps
{
steps
{
echo
'Building'
git
branch:
'DRIP_3.0'
,
url:
'https://github.com/skoulouzis/DRIP.git'
git
branch:
'DRIP_3.0'
,
url:
'https://github.com/skoulouzis/DRIP.git'
sh
"mvn -Dmaven.test.skip=true install"
sh
"mvn -Dmaven.test.skip=true install"
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'
)
{
steps
{
echo
'Testing'
sh
"mvn test"
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
(
'Build python-code'
)
{
agent
{
docker
{
image
'python:3.7-buster'
}
}
steps
{
steps
{
echo
'Deploying'
sh
'cd drip-planner && python3.7 -m venv venv && venv/bin/pip3 install -r requirements.txt'
sh
"cd drip-manager && mvn -Dmaven.test.skip=true install dockerfile:build"
sh
"cd ../"
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"
}
}
stage
(
'Test java-code'
)
{
agent
any
tools
{
maven
"maven-3.6.2"
jdk
"openjdk-11"
}
steps
{
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 java-code'
)
{
agent
any
tools
{
maven
"maven-3.6.2"
jdk
"openjdk-11"
}
steps
{
sh
"cd drip-manager && mvn -Dmaven.test.skip=true install dockerfile:build"
}
}
stage
(
'Package python-code'
)
{
agent
any
steps
{
sh
"cd sure_tosca-flask-server && docker build -t sure-tosca:3.0.0 ."
sh
"cd sure_tosca-flask-server && docker build -t sure-tosca:3.0.0 ."
sh
"cd ../"
sh
"cd ../"
sh
"cd drip-planner && docker build -t drip-planner:3.0.0 ."
sh
"cd drip-planner && docker build -t drip-planner:3.0.0 ."
}
}
stage
(
'Deploy'
)
{
steps
{
echo
'Deploying'
}
}
}
}
}
}
}
}
drip-planner/.idea/workspace.xml
View file @
7b831d65
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"e478ccae-5352-4e8e-9efb-3f5cda44e877"
name=
"Default Changelist"
comment=
""
>
<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>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
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'
}
}
}
}
sure_tosca-flask-server/Dockerfile
View file @
7b831d65
FROM
python:3.7-
alpine
FROM
python:3.7-
buster
RUN
mkdir
-p
/usr/src/app
RUN
mkdir
-p
/usr/src/app
WORKDIR
/usr/src/app
WORKDIR
/usr/src/app
...
...
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