Jenkins 詹金斯作业构建失败

Jenkins 詹金斯作业构建失败,jenkins,centos,gitlab,jenkins-plugins,sysadmin,Jenkins,Centos,Gitlab,Jenkins Plugins,Sysadmin,在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

在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分支,签出仅切换到此分支。您的分支位于服务器的本地后面

信息是明确的:

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

通常这是由詹金斯完成的。我需要您如何运行此作业的更多信息。

您有一些代码吗?如何执行源代码签出?是的,web应用程序正在运行。签出代码是---->SSH_OPTS=“-o StrictHostKeyChecking=no-o ConnectTimeout=5”sudo git签出我的项目sudo git pull sudo git签出我的项目git branchus通常Jenkins会为您自动执行此签出。您真的需要手动执行此步骤吗?如果是的话,你应该尝试一下git pull,甚至是重置——很难,那么它应该可以工作。什么样的信息,先生?我只拉我的项目开发分支。@detzuHi,请发送作业,是脚本吗?您是如何配置jenkins作业的?嗯,脚本从gitlab服务器My_Project_Develop分支提取,创建.war文件并部署在另一台服务器的ApacheTomcat中。