我正在尝试使用git来实现Jenkins的maven release。我遵循了这个指南,但我的发布失败,并出现以下错误。在推送时发生问题。我正在使用工作空间清理插件,所以每次都应该获取项目的新副本。我不确定为什么会出现这个错误。
我试图添加一个预处理步骤,执行"
我试图添加一个预处理步骤,执行"
git fetch
"和"git pull origin master
",但我仍然收到错误信息。似乎它在jenkins工作空间之外创建了本地repo。有人能帮我指向正确的方向吗?10:44:05 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.2:prepare (default-cli) on project test: Unable to commit files
10:44:05 [ERROR] Provider message:
10:44:05 [ERROR] The git-push command failed.
10:44:05 [ERROR] Command output:
10:44:05 [ERROR] To ssh://abc.example.com/test.git
10:44:05 [ERROR] ! [rejected] master -> master (fetch first)
10:44:05 [ERROR] error: failed to push some refs to 'ssh://gitlab@abc.example.com/test.git'
10:44:05 [ERROR] hint: Updates were rejected because the remote contains work that you do
10:44:05 [ERROR] hint: not have locally. This is usually caused by another repository pushing
10:44:05 [ERROR] hint: to the same ref. You may want to first integrate the remote changes
10:44:05 [ERROR] hint: (e.g., 'git pull ...') before pushing again.
10:44:05 [ERROR] hint: See the 'Note about fast-forwards' in 'git push --help' for details.
10:44:05 [ERROR] -> [Help 1]
10:44:05 [ERROR] 提示:更新被拒绝,因为远程包含您所做的工作...
- khmarbaise