Add tests to Jenkinsfile

This commit is contained in:
Kameron Kenny 2024-10-30 09:36:05 -04:00
parent 6d832f0759
commit 2451d24447
No known key found for this signature in database
GPG Key ID: E5006629839D2276
3 changed files with 12 additions and 7 deletions

View File

@ -1,7 +1,7 @@
FROM debian:latest FROM debian:latest
MAINTAINER Kameron Kenny <kkenny379@gmail.com> MAINTAINER Kameron Kenny <kkenny379@gmail.com>
LABEL version="20241030092324" LABEL version="20241030093605"
LABEL description="Debian Based syslog-ng" LABEL description="Debian Based syslog-ng"
RUN apt-get update RUN apt-get update

15
Jenkinsfile vendored
View File

@ -6,11 +6,16 @@ pipeline {
stages { stages {
stage("verify tooling") { stage("verify tooling") {
steps { steps {
sh ''' sh 'docker version'
docker version sh 'docker info'
docker info sh 'docker compose version'
docker compose version sh 'syslog-ng -V'
''' }
}
stage("Test syslog-ng configuration") {
steps {
sh 'syslog-ng -s -f config/syslog-ng.conf'
} }
} }

View File

@ -10,7 +10,7 @@ services:
syslog-ng: syslog-ng:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241030092324 image: docker-registry1.in.thelinuxpro.net:5000/tlp/syslog-ng:20241030093605
container_name: syslog-ng container_name: syslog-ng
restart: unless-stopped restart: unless-stopped
networks: networks: