簡體   English   中英

Jenkins 作業構建失敗

[英]Jenkins Job Build Failure

在 jenkins 中開始構建作業后,我的 git-lab 服務器的內存已滿。 重新啟動 Jenkins 服務器后作業成功。Jenkins 變得太慢了有時錯誤也帶有信號 9。 先感謝您。 我附上了失敗構建的日志。

    started by user ME
Building in workspace /var/lib/jenkins/workspace/my_Project
using credential ABC
 > /usr/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
 > /usr/bin/git config remote.origin.url git@myrepo:root/My_Project.git # timeout=10
Fetching upstream changes from git@myrepo:root/My_Project.git
 > /usr/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials 
 > /usr/bin/git fetch --tags --progress git@myrepo:root/My_Project.git +refs/heads/*:refs/remotes/origin/*
 > /usr/bin/git rev-parse refs/remotes/origin/My_Project_Develop^{commit} # timeout=10
 > /usr/bin/git rev-parse refs/remotes/origin/origin/My_Project_Develop^{commit} # timeout=10
Checking out Revision fbd8fcef97895366d1d08bccb22615712d1f9ef0 (refs/remotes/origin/My_Project_Develop)
 > /usr/bin/git config core.sparsecheckout # timeout=10
 > /usr/bin/git checkout -f fbd8fcef97895366d1d08bccb22615712d1f9ef0
Commit message: "Update features of Software."
 > /usr/bin/git rev-list --no-walk fbd8fcef97895366d1d08bccb22615712d1f9ef0 # timeout=10
Checking for pre-build
Executing pre-build step
Checking if email needs to be generated
No emails were triggered.
[My_Project] $ /bin/sh -xe /tmp/jenkins6218118938138193412.sh
+ id -un
root
+ SSH_OPTS='-o StrictHostKeyChecking=no -o ConnectTimeout=5'
+ sudo git checkout My_Project_Develop
Previous HEAD position was fbd8fce... Update features of Software.
Switched to branch 'My_Project_Develop'
Your branch is behind 'origin/My_Project_Develop' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)
Build step 'Execute shell' marked build as failure
Discard old builds...
#1040 is removed because status FAILURE is not to be kept
Checking for post-build
Performing post-build step
Checking if email needs to be generated
No emails were triggered.
Finished: FAILURE

需要拉取 My_Project_Develop 分支,checkout 只是切換到這個分支。 您的分支本地位於服務器后面。

信息很明確:

Your branch is behind 'origin/My_Project_Develop' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

通常這是由詹金斯完成的。 我需要更多信息你如何運行這項工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM