젠킨스 파이프 라인 스크립트가 있습니다. 그것은 내앨리어싱이 아무런 영향을주지 않습니다.
이 작동 :
sh("/my/path/to/git status")
을하지만, 내가 시도하는 경우 :
sh("alias git='/my/path/to/git' && git status")
또는
sh("alias git='/my/path/to/git'")
sh("git status")
다음은 작동하지 않습니다 script.sh: line 2: git: command not found
I을 싶습니다 코드의 두 번째와 세 번째 부분도 잘 작동하게하십시오. 어떻게해야합니까?