Update Jenkinsfile
All checks were successful
Updates/glados-voice/pipeline/head This commit looks good
All checks were successful
Updates/glados-voice/pipeline/head This commit looks good
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -51,7 +51,7 @@ pipeline {
|
|||||||
// Use the image built in the previous stage
|
// Use the image built in the previous stage
|
||||||
// Set the container name
|
// Set the container name
|
||||||
// Map the ports
|
// Map the ports
|
||||||
sh "docker run -d --name ${env.CONTAINER_NAME} -p ${env.HOST_PORT}:${env.CONTAINER_PORT} ${env.IMAGE_NAME}"
|
sh "docker run -d --restart=always --name ${env.CONTAINER_NAME} -p ${env.HOST_PORT}:${env.CONTAINER_PORT} ${env.IMAGE_NAME}"
|
||||||
|
|
||||||
echo "Container ${env.CONTAINER_NAME} should be running."
|
echo "Container ${env.CONTAINER_NAME} should be running."
|
||||||
echo "You can check its status with: docker ps -f name=${env.CONTAINER_NAME}"
|
echo "You can check its status with: docker ps -f name=${env.CONTAINER_NAME}"
|
||||||
|
Reference in New Issue
Block a user