0
Linux gocd 에이전트에서 환경 변수를 업데이트 할 수 있어야합니다. 이 환경 변수는 에이전트에서 실행되는 파이프 라인 내에서 액세스 할 수 있어야합니다. 문서 나는 지금까지 gocd 환경에서 생성 된 환경 변수를 사용하는 방법에 대해 읽었습니다. 그러나 이것은 나의 요구 사항이 아닙니다. 지금까지 다음 단계를 시도env 변수를 gocd 파이프 라인에 액세스 가능하게 설정
: 어떤 이유
- Logged into the agent as go user and set an environment variable (export VARA=XXX)
- Tried to echo this variable from a pipeline in gocd that prints this variable, in vain.
- Also tried specifying the variable in bash_profile, bashrc and executed the source command in the same gocd task that echoes the variable
는 gocd 파이프 라인 나던이 변수를 참조 할 것. 어떤 조언이 있다면 알려주세요.