![](/img/trans.png)
[英]At next new agent in the same Jenkins Pipeline, how to get customized environment variable in last ended agent (using AWS Code commit Jenkins project)
[英]How to write a pipeline script for building the project in AWS?
我對 AWS 部分非常陌生,我想構建和部署我的項目,因為我在 jenkins 中選擇管道腳本我正在編寫一些構建腳本,我在控制台上遇到這樣的錯誤
Started by user saitarun
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/lib/jenkins/workspace/sample_pipelinejob
[Pipeline] {
[Pipeline] stage
[Pipeline] { (clone repository and clean project)
[Pipeline] sh
+ git clone https://github.com/saitarun135/ADDRESS_BOOK
/var/lib/jenkins/workspace/sample_pipelinejob@tmp/durable-8b9fc0cc/script.sh: line 1: git: command not found
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 127
Finished: FAILURE
如何安裝 git
如果您的主 Jenkins 實例和 Jenkins 代理之間的git
安裝路徑不同,您需要在節點配置中的代理級別指定該路徑。
(圖片來自“ cloudbees Using PATH in the Git Configuration / In the node configuration ”)
您可能需要在該實例上安裝 Git: sudo yum install git
錯誤信息
git: command not found
顯示git
未安裝在您的Jenkins
機器上或git
不在您的PATH
變量中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.