在解决在Windows奴隶上构建Jenkins作业的问题时,我可能遇到了障碍。我不确定要解决以下问题需要做些什么?这是日志
Building remotely on Windows Slave (windows) in workspace
c:\Builds\workspace\windows-nuget-push
> C:\Git\cmd\git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> C:\Git\cmd\git.exe config remote.origin.url git@github.com:SDK-NewGen/sdk.git # timeout=10
Fetching upstream changes from git@github.com:NewGen/sdk.git
> C:\Git\cmd\git.exe --version # timeout=10
using GIT_SSH to set credentials
> C:\Git\cmd\git.exe -c core.askpass=true fetch --tags --progress git@github.com:NewGen/sdk.git +refs/heads/*:refs/remotes/origin/*
> C:\Git\cmd\git.exe rev-parse "refs/remotes/origin/develop^{commit}" # timeout=10
> C:\Git\cmd\git.exe rev-parse "refs/remotes/origin/origin/develop^{commit}" # timeout=10
Checking out Revision e1feb68bcc21e8801a5bcaf087bda5041370fbf7 (refs/remotes/origin/develop)
> C:\Git\cmd\git.exe config core.sparsecheckout # timeout=10
> C:\Git\cmd\git.exe checkout -f e1feb68bcc21e8801a5bcaf087bda5041370fbf7
> C:\Git\cmd\git.exe rev-list e1feb68bcc21e8801a5bcaf087bda5041370fbf7 # timeout=10
[windows-nuget-push] $ sh -xe C:\WINDOWS\TEMP\hudson8489555376979916245.sh
2 [main] sh 140924 tty_list::allocate_tty: No tty allocated
+ ./update-repo.sh
C:\WINDOWS\TEMP\hudson8489555376979916245.sh: ./update-repo.sh: not found
Build step 'Execute shell' marked build as failure
Finished: FAILURE
我认为失败是由以下日志消息指示的,我不知道如何解决它。
2 [main] sh 140924 tty_list::allocate_tty: No tty allocated,
快速谷歌搜索指向this link,但我无法通过从tty
环境变量中删除CYGWIN
来解决此问题。
如果有人能够解释这种失败的原因并采取措施解决问题,那将会很棒
..这里是Jenkins构建作业将执行的shell命令
./update-repo.sh