构建失败:找不到配置文件

时间:2015-06-26 14:47:48

标签: jenkins

我正在测试Jenkins,以了解如何通过ssh从远程服务器上的本地存储库(使用部署脚本)进行部署。 我已经安装并设置了"通过SSH插件发布"连接并允许将文件传输到远程服务器 我创造了一份工作,当我建造它时,我遇到了失败。以下是控制台输出:

Started by user anonymous
Building in workspace /var/lib/jenkins/jobs/test/workspace
Cloning the remote Git repository
Cloning repository file:///home/user/testproject
> git init /var/lib/jenkins/jobs/test/workspace # timeout=10 
Fetching upstream changes from file:///home/user/testproject
> git --version # timeout=10
> git -c core.askpass=true fetch --tags --progress file:///home/user/testproject +refs/heads/*:refs/remotes/origin/*
> git config remote.origin.url file:///home/user/testproject # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
> git config remote.origin.url file:///home/user/testproject # timeout=10
Fetching upstream changes from file:///home/user/testproject
> git -c core.askpass=true fetch --tags --progress file:///home/user/testproject +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 1564ecf8d0cab524978ed0686e9199d9f69108b1 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 1564ecf8d0cab524978ed0686e9199d9f69108b1
First time build. Skipping changelog.
[workspace] $ /bin/sh -xe /tmp/hudson2631034899576944316.sh
+ ./myproject/deploy.sh
========= Starting the deploy utility =========


Project Directory :::  /var/lib/jenkins/jobs/test/workspace
Configuration file not found.
Please create a user configuration in deploy.jenkins.properties
Build step 'Execute shell' marked build as failure
Finished: FAILURE

1 个答案:

答案 0 :(得分:0)

詹金斯没问题。部署脚本中的硬编码路径。