diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..10b7f86 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,22 @@ +pipeline { + agent { label 'agent_smith' } + + stages { + stage('Stop and Remove Existing Container') { + steps { + sh ''' + docker stop parse_saby || true + docker rm parse_saby || true + ''' + } + } + + stage('Build and Run Container') { + steps { + sh ''' + docker build -t parse-saby . + ''' + } + } + } +}