add tests

This commit is contained in:
Kameron Kenny - pi501 2024-04-23 12:30:16 -04:00
parent 4209946137
commit 3f920af11d
1 changed files with 6 additions and 8 deletions

14
Jenkinsfile vendored
View File

@ -22,16 +22,14 @@ pipeline {
stage('Start primary container') {
steps {
sh '''
if [[ $(docker compose ps | wc -l) -eq 1 ]]; then
docker compose up -d --no-color primary
else
docker compose down primary
docker compose up -d --no-color primary
fi
'''
sh 'docker compose up -d --no-color primary'
sh 'docker compose ps'
}
}
stage('test dns') {
steps {
sh 'dig ns1.thelinuxpro.net ANY @204.8.15.80'
sh 'dig ns1.in.thelinuxpro.net ANY @10.99.153.241'
}
}
}