Add tests to Jenkinsfile
This commit is contained in:
parent
6d832f0759
commit
2451d24447
|
@ -1,7 +1,7 @@
|
|||
FROM debian:latest
|
||||
MAINTAINER Kameron Kenny <kkenny379@gmail.com>
|
||||
|
||||
LABEL version="20241030092324"
|
||||
LABEL version="20241030093605"
|
||||
LABEL description="Debian Based syslog-ng"
|
||||
|
||||
RUN apt-get update
|
||||
|
|
|
@ -6,11 +6,16 @@ pipeline {
|
|||
stages {
|
||||
stage("verify tooling") {
|
||||
steps {
|
||||
sh '''
|
||||
docker version
|
||||
docker info
|
||||
docker compose version
|
||||
'''
|
||||
sh 'docker version'
|
||||
sh 'docker info'
|
||||
sh 'docker compose version'
|
||||
sh 'syslog-ng -V'
|
||||
}
|
||||
}
|
||||
|
||||
stage("Test syslog-ng configuration") {
|
||||
steps {
|
||||
sh 'syslog-ng -s -f config/syslog-ng.conf'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ services:
|
|||
syslog-ng:
|
||||
build:
|
||||
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
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
|
|
Loading…
Reference in New Issue