diff --git a/Jenkinsfile b/Jenkinsfile index 119445e..40d4cea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,13 @@ pipeline { - agent { label any } + agent { label 'agent_smith' } stages { stage('Stop and Remove Existing Container') { steps { sh ''' docker stop fastapi_hello_time || true - docker rm fastapi_hello_time || true docker-compose down || true - ''' + ''' } } @@ -16,6 +15,8 @@ pipeline { steps { sh ''' docker-compose up --build -d - ''' + ''' } } + } +}