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
2b234a21
Unverified
Commit
2b234a21
authored
Nov 10, 2019
by
skoulouzis
Committed by
GitHub
Nov 10, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Jenkinsfile
parent
f1f76ea3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
22 deletions
+42
-22
Jenkinsfile
Jenkinsfile
+42
-22
No files found.
Jenkinsfile
View file @
2b234a21
node
{
pipeline
{
stage
(
'Clone sources'
)
{
agent
any
git
branch:
'DRIP_3.0'
,
url:
'https://github.com/skoulouzis/DRIP.git'
tools
{
}
// Install the Maven version configured as "M3" and add it to the path.
stage
(
'Build'
)
{
maven
"maven-3.6.2"
echo
'Building'
jdk
"openjdk-11"
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"
stages
{
sh
"cd ../"
stage
(
'Build'
)
{
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"
steps
{
}
echo
'Building'
stage
(
'Test'
)
{
git
branch:
'DRIP_3.0'
,
url:
'https://github.com/skoulouzis/DRIP.git'
echo
'Testing'
sh
"mvn -Dmaven.test.skip=true install"
sh
"mvn test"
sh
"cd drip-planner && python3 -m venv venv && venv/bin/pip3 install -r requirements.txt"
sh
"cd drip-planner && venv/bin/python3 -m unittest discover"
sh
"cd ../"
sh
"cd sure_tosca-flask-server && venv/bin/python3 -m unittest discover"
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
(
'Package'
)
{
}
echo
'Deploying'
}
sh
"cd drip-manager && mvn -Dmaven.test.skip=true install dockerfile:build"
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'
}
}
}
}
}
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