This commit is contained in:
parent
4aa7073307
commit
9b20da8cf8
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
@ -16,8 +16,7 @@ pipeline {
|
|||
stage('Deploy') {
|
||||
steps {
|
||||
script {
|
||||
// 현재 사용자 정보 출력
|
||||
ps -ef | grep jenkins
|
||||
|
||||
// Docker 컨테이너 ID 가져오기
|
||||
def containerId = sh(script: "docker ps -qf 'name=${DOCKER_CONTAINER_NAME}'", returnStdout: true).trim()
|
||||
if (containerId) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user