Commit 3f33b5b20ef344781a6efd3a8d4fe8e2e73a4738
1 parent
c6296ef6e1
Exists in
master
and in
1 other branch
Add job to view xlsiem.conf
Showing 1 changed file with 37 additions and 0 deletions
kea_mltd_xlsiem.conf.groovy
View file @
3f33b5b
1 | +/** | |
2 | +* Jenkinsfile to deploy multiple Docker containers based on docker-compose into a DEV server and run any test. | |
3 | +* This pipeline will run the Docker containers, execute the tests and then stop and remove the containers from the DEV | |
4 | +* server automatically. | |
5 | +**/ | |
6 | + | |
7 | + | |
8 | +pipeline { | |
9 | + | |
10 | + agent any | |
11 | + | |
12 | + environment { | |
13 | + // Keep as is the following two lines | |
14 | + PRIVATE_REGISTRY = "https://registry.curex-project.eu:443/curex-local/" | |
15 | + ARTIFACTORY_URL = "registry.curex-project.eu:443/curex-local/" | |
16 | + | |
17 | + HOST_IP = "116.203.166.220" | |
18 | + DEPLOYMENT_HOST = "${HOST_IP}:2376" | |
19 | + DEPLOYMENT_HOST_CREDENTIALS = "vm2-creds" | |
20 | + } | |
21 | + | |
22 | + stages { | |
23 | + | |
24 | + stage('View logs') { | |
25 | + steps { | |
26 | + script { | |
27 | + docker.withServer("$DEPLOYMENT_HOST", "$DEPLOYMENT_HOST_CREDENTIALS") { | |
28 | + docker.withRegistry("$PRIVATE_REGISTRY" , 'artifactory') { | |
29 | + sh 'docker exec kea_mltd cat /etc/rsyslog.d/xlsiem.conf' | |
30 | + } | |
31 | + } | |
32 | + } | |
33 | + } | |
34 | + } | |
35 | + } | |
36 | +} |