在jenkins管道中从Github运行PowerShell脚本

时间:2020-11-08 20:47:16

标签: powershell jenkins github

我正在尝试从我的github存储库中运行Powershell脚本。但是我在图像中遇到以下错误

Building in workspace C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\gittest
The recommended git tool is: NONE
using credential 43d55fbe-4b68-4850-b73b-359c991de682
 > git.exe rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > git.exe config remote.origin.url https://github.com/xxxxx/Test.git # timeout=10
Fetching upstream changes from https://github.com/xxxxx/Test.git
 > git.exe --version # timeout=10
 > git --version # 'git version 2.27.0.windows.1'
using GIT_ASKPASS to set credentials 
 > git.exe fetch --tags --force --progress -- https://github.com/xxxxx/Test.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10
 > git.exe rev-parse "origin/master^{commit}" # timeout=10
ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
Finished: FAILURE

enter image description here

0 个答案:

没有答案