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
1d87693c
Commit
1d87693c
authored
Apr 23, 2020
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CI with sonarqube
parent
a9397eb1
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
38 deletions
+35
-38
application_example_2_topologies.yaml
TOSCA/application_example_2_topologies.yaml
+5
-5
application_example_outputs.yaml
TOSCA/application_example_outputs.yaml
+5
-5
application_example_provisioned.yaml
TOSCA/application_example_provisioned.yaml
+3
-3
application_example_updated.yaml
TOSCA/application_example_updated.yaml
+5
-5
lifeWatch_vre1.yaml
TOSCA/lifeWatch_vre1.yaml
+5
-5
Dockerfile
bin/CI-docker/java/Dockerfile
+3
-11
clone_git.sh
bin/CI-docker/java/clone_git.sh
+1
-1
send_to_sonarqube.sh
bin/CI-docker/java/send_to_sonarqube.sh
+8
-3
No files found.
TOSCA/application_example_2_topologies.yaml
View file @
1d87693c
...
...
@@ -129,29 +129,29 @@ topology_template:
Kubernetes
:
delete
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
delete_service.yml
create
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
create_service.yml
scale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
scale_service.yml
replicas
:
1
autoscale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
autoscale_service.yml
horizontal_pod_autoscaler
:
horizontal_pod_autoscaler.yml
info
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
get_info_service.yml
...
...
TOSCA/application_example_outputs.yaml
View file @
1d87693c
...
...
@@ -128,29 +128,29 @@ topology_template:
Kubernetes
:
delete
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
delete_service.yml
create
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
create_service.yml
scale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
scale_service.yml
replicas
:
1
autoscale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
autoscale_service.yml
horizontal_pod_autoscaler
:
horizontal_pod_autoscaler.yml
info
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
get_info_service.yml
...
...
TOSCA/application_example_provisioned.yaml
View file @
1d87693c
...
...
@@ -63,16 +63,16 @@ topology_template:
Standard
:
configure
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbook
:
"
k8s_dashboard.yaml"
create
:
inputs
:
playbook
:
"
install_k8s.yaml"
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
delete
:
inputs
:
playbook
:
"
k8s_delete.yaml"
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
type
:
"
tosca.nodes.ARTICONF.docker.Orchestrator.Kubernetes"
topology
:
properties
:
...
...
TOSCA/application_example_updated.yaml
View file @
1d87693c
...
...
@@ -38,29 +38,29 @@ topology_template:
Kubernetes
:
delete
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
delete_service.yml
create
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
create_service.yml
scale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
scale_service.yml
replicas
:
1
autoscale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
autoscale_service.yml
horizontal_pod_autoscaler
:
horizontal_pod_autoscaler.yml
info
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
get_info_service.yml
...
...
TOSCA/lifeWatch_vre1.yaml
View file @
1d87693c
...
...
@@ -31,29 +31,29 @@ topology_template:
Kubernetes
:
delete
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
delete_service.yml
create
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
create_service.yml
scale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
scale_service.yml
replicas
:
1
autoscale
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
autoscale_service.yml
horizontal_pod_autoscaler
:
horizontal_pod_autoscaler.yml
info
:
inputs
:
repository
:
https://github.com/
skoulouzis
/playbooks.git
repository
:
https://github.com/
QCAPI-DRIP
/playbooks.git
playbooks
:
-
get_info_service.yml
...
...
bin/CI-docker/java/Dockerfile
View file @
1d87693c
...
...
@@ -2,23 +2,15 @@ FROM maven:3.6.3-jdk-11
MAINTAINER
S. Koulouzis
ARG
SONAR_PROPERTIES_FILE=uva-conf.properties
# Install SonarQube Dependency
RUN
wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.2.0.1873-linux.zip
&&
\
unzip sonar-scanner-cli-4.2.0.1873-linux.zip
&&
\
mv
sonar-scanner-4.2.0.1873-linux /opt/sonar-scanner
COPY
clone_git.sh clone_git.sh
COPY
build.sh build.sh
COPY
send_to_sonarqube.sh send_to_sonarqube.sh
COPY
${SONAR_PROPERTIES_FILE} ${SONAR_PROPERTIES_FILE}
CMD
./clone_git.sh $BRANCH $GIT_URL $FOLDER_NAME && \
./build.sh $FOLDER_NAME && \
./send_to_sonarqube.sh $FOLDER_NAME $SONAR_HOST $SONAR_LOGIN
$SONAR_PROPERTIES_FILE
./send_to_sonarqube.sh $FOLDER_NAME $SONAR_HOST $SONAR_LOGIN
# docker build -t java_ci -build-arg SONAR_PROPERTIES_FILE=uva-conf.properties .
# docker run -it -e BRANCH=develop -e GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git -e FOLDER_NAME=conf -e SONAR_HOST=https://sonar.articonf.eu/ -e SONAR_LOGIN= -e SONAR_PROPERTIES_FILE=uva-conf.properties -e FOLDER_NAME=conf java_ci
\ No newline at end of file
# docker build -t java_ci .
# docker run -it --cpus=".5" --memory=2000m -e BRANCH=develop -e GIT_URL=https://gitlab.articonf.eu:4430/uva/conf.git -e FOLDER_NAME=conf -e SONAR_HOST=host -e SONAR_LOGIN=secret java_ci
bin/CI-docker/java/clone_git.sh
View file @
1d87693c
...
...
@@ -5,4 +5,4 @@ BRANCH=$1
GIT_URL
=
$2
FOLDER_NAME
=
$3
git clone
-b
$BRANCH
$GIT_URL
$FOLDER_NAME
git clone
-b
$BRANCH
$GIT_URL
bin/CI-docker/java/send_to_sonarqube.sh
View file @
1d87693c
#!/bin/bash
FOLDER_NAME
=
$1
SRC
=
$1
SONAR_HOST
=
$2
SONAR_LOGIN
=
$3
SONAR_PROPERTIES_FILE
=
$4
/opt/sonar-scanner/bin/sonar-scanner
-X
-e
-D
sonar.host.url
=
$SONAR_HOST
-D
sonar.projectBaseDir
=
$FOLDER_NAME
-D
project.settings
=
$SONAR_PROPERTIES_FILE
-D
sonar.login
=
$SONAR_LOGIN
\ No newline at end of file
cd
$SRC
for
i
in
$(
find
.
-name
target
)
;
do
echo
"Sending
$i
"
done
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