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
fcc5dfab
Commit
fcc5dfab
authored
Nov 07, 2019
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added scripts
parent
d0e72795
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
73 additions
and
59 deletions
+73
-59
.jenkins_pipeline.kate-swp
.jenkins_pipeline.kate-swp
+0
-0
build.sh
build.sh
+5
-22
pom.xml
drip-manager/pom.xml
+31
-0
workspace.xml
drip-planner/.idea/workspace.xml
+11
-2
requirements.txt
drip-planner/requirements.txt
+2
-1
jenkins_pipeline
jenkins_pipeline
+20
-33
requirements.txt
sure_tosca-flask-server/requirements.txt
+1
-1
test.sh
test.sh
+3
-0
No files found.
.jenkins_pipeline.kate-swp
deleted
100644 → 0
View file @
d0e72795
File deleted
build.sh
View file @
fcc5dfab
#!/bin/bash
#!/bin/bash
mkdir
build
mvn clean
install
cd
drip-api
mvn
install
tar
-czvf
drip-api-1.0-SNAPSHOT.tar.gz target/drip-api-1.0-SNAPSHOT
mv
drip-api-1.0-SNAPSHOT.tar.gz ../build
cd
drip-planner
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
cd
../
cd
../
cd
sure_tosca-flask-server
&&
python3
-m
venv venv
&&
venv/bin/pip3
install
-r
requirements.txt
tar
-czvf
drip-deployer.tar.gz drip-deployer
venv/bin/pip3
install
-r
test-requirements.txt
mv
drip-deployer.tar.gz build
tar
-czvf
drip-planner.tar.gz drip_planner2
mv
drip-planner.tar.gz build
cd
drip-provisioner/
mvn
install
mv
target/drip-provisioner-1.0-SNAPSHOT-jar-with-dependencies.jar ../build
cd
../
cd
../
mv
etc.tar.gz build
drip-manager/pom.xml
View file @
fcc5dfab
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<maven.compiler.source>
${java.version}
</maven.compiler.source>
<maven.compiler.source>
${java.version}
</maven.compiler.source>
<maven.compiler.target>
${java.version}
</maven.compiler.target>
<maven.compiler.target>
${java.version}
</maven.compiler.target>
<springfox-version>
2.9.2
</springfox-version>
<springfox-version>
2.9.2
</springfox-version>
<docker.image.prefix>
deth53
</docker.image.prefix>
</properties>
</properties>
<parent>
<parent>
<groupId>
nl.uva.sne.drip
</groupId>
<groupId>
nl.uva.sne.drip
</groupId>
...
@@ -30,6 +31,36 @@
...
@@ -30,6 +31,36 @@
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
<artifactId>
dockerfile-maven-plugin
</artifactId>
<version>
1.4.13
</version>
<configuration>
<repository>
${docker.image.prefix}/${project.artifactId}
</repository>
</configuration>
</plugin>
<plugin>
<groupId>
org.apache.maven.plugins
</groupId>
<artifactId>
maven-dependency-plugin
</artifactId>
<executions>
<execution>
<id>
unpack
</id>
<phase>
package
</phase>
<goals>
<goal>
unpack
</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>
${project.groupId}
</groupId>
<artifactId>
${project.artifactId}
</artifactId>
<version>
${project.version}
</version>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</plugins>
</build>
</build>
<dependencies>
<dependencies>
...
...
drip-planner/.idea/workspace.xml
View file @
fcc5dfab
<?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=
"
added matplotlib
"
>
<change
beforePath=
"$PROJECT_DIR$/../.jenkins_pipeline.kate-swp"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../.jenkins_pipeline.kate-swp"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../drip-manager/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../drip-manager/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../drip-manager/pom.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../drip-manager/pom.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/requirements.txt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/requirements.txt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/requirements.txt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/requirements.txt"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../jenkins_pipeline"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../jenkins_pipeline"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../jenkins_pipeline"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../jenkins_pipeline"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/../sure_tosca-flask-server/requirements.txt"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/../sure_tosca-flask-server/requirements.txt"
afterDir=
"false"
/>
</list>
</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"
/>
...
@@ -164,7 +166,14 @@
...
@@ -164,7 +166,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1573146875676
</updated>
<updated>
1573146875676
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"9"
/>
<task
id=
"LOCAL-00009"
summary=
"added matplotlib"
>
<created>
1573146945740
</created>
<option
name=
"number"
value=
"00009"
/>
<option
name=
"presentableId"
value=
"LOCAL-00009"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1573146945740
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"10"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"Vcs.Log.Tabs.Properties"
>
<component
name=
"Vcs.Log.Tabs.Properties"
>
...
...
drip-planner/requirements.txt
View file @
fcc5dfab
...
@@ -4,3 +4,4 @@ networkx==2.4
...
@@ -4,3 +4,4 @@ networkx==2.4
pyyaml==5.1.2
pyyaml==5.1.2
tosca-parser ==1.6.1
tosca-parser ==1.6.1
matplotlib==3.0.3
matplotlib==3.0.3
networkx==2.4
\ No newline at end of file
jenkins_pipeline
View file @
fcc5dfab
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"
jdk "openjdk-11"
jdk "openjdk-11"
}
}
stages {
stages {
stage('Build') {
stage('Build') {
steps {
steps {
echo 'Building'
echo 'Building'
steps {
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 clean install"
sh "mvn clean 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"
}
}
}
}
stage('Test') {
stage('Test') {
steps {
steps {
echo 'Testing'
echo 'Testing'
sh "cd drip-planner && python3 -m unittest test/test_planner.py"
}
}
}
}
stage('Deploy') {
stage('Deploy') {
steps {
steps {
echo 'Deploying'
echo 'Deploying'
}
}
}
}
}
}
post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if successful'
}
failure {
echo 'This will run only if failed'
}
unstable {
echo 'This will run only if the run was marked as unstable'
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
}
}
}
}
sure_tosca-flask-server/requirements.txt
View file @
fcc5dfab
...
@@ -3,4 +3,4 @@ python-dateutil == 2.8.0
...
@@ -3,4 +3,4 @@ python-dateutil == 2.8.0
typing == 3.7.4.1
typing == 3.7.4.1
swagger-ui-bundle == 0.0.5
swagger-ui-bundle == 0.0.5
tinydb == 3.15.1
tinydb == 3.15.1
tosca-parser ==
1.6.1
tosca-parser ==1.6.1
test.sh
0 → 100755
View file @
fcc5dfab
#!/bin/bash
cd
drip-planner
&&
python3
-m
unittest
test
/test_planner.py
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