[英]How to make jenkins checkout code into a separate directory, without the .git folder?
我是 Jenkins 的新用戶。 我正在運行最新的穩定版 jenkins,安裝在 Windows 上。 我有一個管道作業,當有人提交時,它會將代碼簽出到我們的測試站點。 現在,將文件從工作區復制到測試站點的步驟需要幾分鍾時間。 我想加快提交到測試分支然后看到你的工作出現在測試站點上的反饋循環。 所 ...
[英]How to make jenkins checkout code into a separate directory, without the .git folder?
我是 Jenkins 的新用戶。 我正在運行最新的穩定版 jenkins,安裝在 Windows 上。 我有一個管道作業,當有人提交時,它會將代碼簽出到我們的測試站點。 現在,將文件從工作區復制到測試站點的步驟需要幾分鍾時間。 我想加快提交到測試分支然后看到你的工作出現在測試站點上的反饋循環。 所 ...
[英]Prevent the jenkins build if previous successful build commit and present commit is same
如果當前提交與之前的成功構建提交相同,我想阻止Jenkins 構建。 有什么方法可以檢查 Jenkins 中的當前版本和以前的版本。 我正在使用 Jenkins 文件。 簡而言之,如果沒有提交,我不希望 jenkins 進行構建。 手動構建不應該工作。 ...
[英]Failed to connect to repository : Error performing git command: git ls-remote -h ***public github url *** HEAD
我已經在 ec2 實例上安裝了 jenkins。 當我嘗試使用 ec2 實例配置我的公共 github 存儲庫時,它會拋出錯誤: *無法連接到存儲庫:執行 git 命令時出錯:git ls-remote -h ** public github url *** HEAD 我也重新安裝了 git 插 ...
[英]Jenkins can't find a git SHA key provided by sh
我有一個 Jenkins 應用程序,它監視 SCM 更改並相應地創建、刪除或構建作業。 我有與 git 環境相關的奇怪錯誤。 我使用 Jenkins git 命令來獲取數據我在前后獲得了 SHA 密鑰之后我在“之前”的 SHA 密鑰和“之后”之間做了一個差異我收到一條錯誤消息,指出找不到“之后”的 ...
[英]wrapper for git, for jenkins pipeline, on windows 10 jenkins slave
我想要完成的工作 - 我想為 git 本身提供一個包裝器,如果 git 命令失敗(超時/網絡問題),它將重試。 我有以下包裝器的虛擬代碼: After changing $PATH and saving the file as git.cmd and removing path to git.ex ...
[英]Jenkins git checkout freezing on credentials for LFS
我有一個基於 Jenkins 文件的多分支管道,該文件顯式克隆了參數提供的另一個存儲庫。 在嘗試作為git checkout -f <HASH>命令的一部分請求git-lfs的憑據后,我看到它正在凍結並超時。 如何簽出具有憑據 git lfs 訪問權限的存儲庫? 詹金斯文件: Jenk ...
[英]Jenkins Git plugin is not fetching commits in submodules
我有一個 Git 存儲庫abc.git ,其中包含子模塊。 我們有一個 Jenkins 作業,用於構建abc.git存儲庫。 Jenkins 作業使用 GitSCM 插件檢查代碼並進行構建。 下面是作業中使用的插件配置。 當我在ABC存儲庫中提交時,該提交反映在 Jenkins 構建變更日志集中。 ...
[英]Getting error while install plugins in Jenkins
我試圖在本地安裝 Jenkins 並在管理插件中安裝 GIT 等插件時出現以下錯誤: ...
[英]List of branches in GitSCM checkout step?
我開始研究 Jenkins 中的 GitSCM class,所以我看到了它在構造函數中的參數。 只有一件事我不明白: branches參數的類型是: List<BranchSpec> branches 。 我的問題是:為什么需要一個分支列表? 為什么我要在checkout步驟中結帳分支 ...
[英]Jenkins Git Publish fails when pushing a branch; no stderror shown
我們的構建包含一個本地 shell 命令,它根據啟動構建的參數創建一個本地 git 分支。 將文件復制到目的地后,目標是將新分支推送到存儲庫,以便如果將來對該分支有更新,可以將其拉出。 在我創建的后期構建和要推送的分支中,兩者都以以下錯誤結束 (GIT_URL 只是為了保護隱私,我替換了實際的 U ...
[英]GitSCMExtension or GitSCM branch source configuration to fetch all/some additional remote branches in Jenkins multi-branch pipeline
除了作業正在運行的分支之外,我一直在嘗試找到分支源配置以至少獲取develop和master遠程分支,但成功率為零。 我的用例是從 git 參考名稱和 GitVersion 提交消息中確定版本。 到目前為止,我發現的唯一解決方法是麻煩且不可移植,因為它需要在不針對本地( file:// )存儲庫運行 ...
[英]Set Specefic Branch When Job Build periodically In Jenkins
My git Repository is Azure Dev-ops and I use Jenkins for Continuous Integration Build and I Use TFS Plugin for Jenkins. 我使用管道在 Jenkins 上構建我的項目。 我希望 J ...
[英]Choose Jenkinsfile of target branch or source branch while doing Pull Request
我的 git 存儲庫是 Azure DevOps,使用 Jenkins 進行持續集成構建,我使用 TFS Jenkins 插件。 例如我有 50 個分支,其中大部分都有不同的 Jenkins 文件。 當我請求 pull on Azure DevOps 時,我希望能夠選擇源分支或目標分支的 Jenk ...
[英]Jenkinsfile: Sparse checkout leaves no entry on working directory
我正在寫一個詹金斯管道。 它首先從 repo A 中檢出,然后應該構建和測試代碼。 但為此,我需要來自不同存儲庫(repo B)的某個目錄。 所以我有一個從 repo A 克隆的第一個管道步驟 checkout([$class: 'GitSCM'] 等等),然后是從 repo B 克隆的第二個管道步 ...
[英]Failed to connect to repository Jenkins setup version 2.249.1
在 windows 機器上安裝了 Jenkins 和 git。 當嘗試在源代碼管理下設置 URL 時顯示以下錯誤:PATH enviornment variable C:\Users\user\AppData\Local\Programs\Git\bin Jenkins->ManageJen ...
[英]Jenkins Git Parameter Plugin branchFilter regex
我在 Jenkins 聲明性管道中使用 Git Parameter Plugin (0.9.12),如下所示。 params.branchName的輸出是master ,對於我的情況,輸出需要origin/master 。 有沒有辦法做到這一點? 如何添加從 params.brancName 獲 ...
[英]Command "git lfs pull origin" returned status code 1; stderr: git: 'lfs' is not a git command
在我們的 mac slave 上安裝了 git-lfs 並按照https://medium.com/@priya_talreja/git-lfs-setup-in-jenkins-ee80879007e3的文章。 建立 jenkins 工作我們收到以下錯誤: 在 4 個節點中,一個節點正在工作,其他 ...
[英]how to fetch agent pod template from different repository in jenkins pipeline
我想在回購 A 中保留 jenkins 管道代理(kubernetes pod)模板。jenkinsfile 在回購 B 中。要在回購 B 上運行階段“ci”,我需要從回購 A 簽出的代理文件夾。 當我運行 jenkins 管道作業時,它會檢查 Repo B(分支名稱 = 開發)。 但我無法簽出 R ...
[英]Unable to do git push from jenkins when creating a new branch
我正在使用以下命令從 Jenkins(執行 shell)創建一個新的 git 分支,但是當我運行此作業時,它會在本地創建分支但不會將其推送到原點。 此外,這個 Jenkins 作業只是卡在 git-push 命令上並且永遠不會完成。 我想我在某個地方遺漏了一些東西,因為它無法推動。 git fe ...
[英]How to cleanup pipeline before checkout of repository in Jenkinsfile
我想在 Jenkins git 插件文檔中描述的clean before checkout操作clean before checkout進行clean before checkout : 結帳前清理 通過刪除所有未跟蹤的文件和目錄,包括在 .gitignore 中指定的文件和目錄,在每次結帳前 ...