[👷] whoami 테스트
Some checks failed
Stein_Front/pipeline/head There was a failure building this commit
Some checks failed
Stein_Front/pipeline/head There was a failure building this commit
This commit is contained in:
parent
7ec3d78cd8
commit
1a08f673be
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -16,6 +16,8 @@ pipeline {
|
||||||
stage('Deploy') {
|
stage('Deploy') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
// 현재 사용자 정보 출력
|
||||||
|
sh 'whoami'
|
||||||
// Docker 컨테이너 ID 가져오기
|
// Docker 컨테이너 ID 가져오기
|
||||||
def containerId = sh(script: "docker ps -qf 'name=${DOCKER_CONTAINER_NAME}'", returnStdout: true).trim()
|
def containerId = sh(script: "docker ps -qf 'name=${DOCKER_CONTAINER_NAME}'", returnStdout: true).trim()
|
||||||
if (containerId) {
|
if (containerId) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user