diff --git a/kea_mltd_xlsiem.conf.groovy b/kea_mltd_xlsiem.conf.groovy new file mode 100644 index 0000000..b49ea82 --- /dev/null +++ b/kea_mltd_xlsiem.conf.groovy @@ -0,0 +1,37 @@ +/** +* Jenkinsfile to deploy multiple Docker containers based on docker-compose into a DEV server and run any test. +* This pipeline will run the Docker containers, execute the tests and then stop and remove the containers from the DEV +* server automatically. +**/ + + +pipeline { + + agent any + + environment { + // Keep as is the following two lines + PRIVATE_REGISTRY = "https://registry.curex-project.eu:443/curex-local/" + ARTIFACTORY_URL = "registry.curex-project.eu:443/curex-local/" + + HOST_IP = "116.203.166.220" + DEPLOYMENT_HOST = "${HOST_IP}:2376" + DEPLOYMENT_HOST_CREDENTIALS = "vm2-creds" + } + + stages { + + stage('View logs') { + steps { + script { + docker.withServer("$DEPLOYMENT_HOST", "$DEPLOYMENT_HOST_CREDENTIALS") { + docker.withRegistry("$PRIVATE_REGISTRY" , 'artifactory') { + sh 'docker exec kea_mltd cat /etc/rsyslog.d/xlsiem.conf' + } + } + } + } + } + } +} +