the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
Build Start
go version: 1.19
execute docker run -it --rm -v ...
the input device is not a TTY. If you are using mintty, try prefixing the command with 'winpty'
Traceback (most recent call last):
...
subprocess.CalledProcessError: Command '['docker', 'run', '-it', '--rm', '-v', ... returned non-zero exit status 1.
Build step 'PowerShell' marked build as failure
Finished: FAILURE
원인: docker run의 it 옵션으로 인해 발생.
docker run (-it)
: 컨테이너를 종료하지 않은 채로, 터미널의 입력을 계속해서 컨테이너로 전달하기 위해 사용
credential param(type: Secret Files, Google Key)
(공식 문서) https://www.jenkins.io/doc/book/pipeline/syntax/
(젠킨스 이슈) https://issues.jenkins.io/browse/JENKINS-61341
Loading...
Hi. I am currently working on a Jenkins pipeline and trying to move all credential handling in the domain of the jenkins instance. To be able to execute an ssh command on another machine we use private key authentication. I tried to accomplish this by comb
issues.jenkins.io
다음과 같이 수정하여 해결
pipeline {
agent any
stages {
stage('Authenticate') {
steps {
withCredentials([file(credentialsId: '...', variable: 'keys')]) {
script {
fileName = keys
def data = readFile(file:fileName)
println data
}
}
}
}
}
}