2024-09-17 02:31:19 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage('Checkout') {
|
|
|
|
steps {
|
|
|
|
checkout scm
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Build') {
|
|
|
|
steps {
|
|
|
|
script {
|
|
|
|
docker.build('test.trianta.dev:latest')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Deploy') {
|
2024-09-17 02:46:51 -05:00
|
|
|
steps {
|
2024-09-17 20:12:37 -05:00
|
|
|
sh 'docker stop test && docker rm test || exit 0'
|
2024-09-17 19:19:15 -05:00
|
|
|
sh 'docker run -d -p 3466:80 --name test test.trianta.dev:latest'
|
2024-09-17 02:46:51 -05:00
|
|
|
}
|
2024-09-17 02:31:19 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|