2016-10-24 5 views
0

ビルドジョブではないの構築、それは成功を構築していない...マスターの変更ジョブならば、それは成功


スレーブを構築しますメッセージを構築:
ジェンキンスジョブは設定により、スレーブ機で(、githubのからコードをドッキングウィンドウのイメージを構築する)スレーブノード

Started by user admin 
Building remotely on jenkins-slave (slave) in workspace /home/jenkins/workspace/71bnh8co385ctlmoxgbumdnpnet3ywq 
Cloning the remote Git repository 
Cloning repository [email protected]:xxxxxxx/wcount.git 
> git init /home/jenkins/workspace/71bnh8co385ctlmoxgbumdnpnet3ywq # timeout=10 
Fetching upstream changes from [email protected]:xxxxxxx/wcount.git 
> git --version # timeout=10 
using GIT_SSH to set credentials 71bnh6gke9kmabye9qu2qsazzpofjsa 
> git -c core.askpass=true fetch --tags --progress  [email protected]:xxxxxxx/wcount.git +refs/heads/*:refs/remotes/origin/* 
> git config remote.origin.url [email protected]:xxxxxxx/wcount.git # timeout=10 
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 
> git config remote.origin.url [email protected]:xxxxxxx/wcount.git # timeout=10 
Fetching upstream changes from [email protected]:xxxxxxx/wcount.git 
using GIT_SSH to set credentials 71bnh6gke9kmabye9qu2qsazzpofjsa 
> git -c core.askpass=true fetch --tags --progress  [email protected]:xxxxxxx/wcount.git +refs/heads/*:refs/remotes/origin/* 
> git rev-parse origin/master^{commit} # timeout=10 
Checking out Revision 5730301886fa5c02522705de817c5ddac0f0dbce (origin/master) 
> git config core.sparsecheckout # timeout=10 
> git checkout -f 5730301886fa5c02522705de817c5ddac0f0dbce 
> git rev-list 5730301886fa5c02522705de817c5ddac0f0dbce # timeout=10 
ERROR: Build step failed with exception 
java.lang.IllegalArgumentException: configured dockerFolder  '/home/jenkins/workspace/71bnh8co385ctlmoxgbumdnpnet3ywq' does not exist. 
     at  org.jenkinsci.plugins.dockerbuildstep.cmd.CreateImageCommand.execute(CreateImageCommand.java:93) 
     at org.jenkinsci.plugins.dockerbuildstep.DockerBuilder.perform(DockerBuilder.java:75) 



マスターワークスペースは/ home/jenkins_home /ワークスペース

スレーブワークスペースは、/ホーム/ジェンキンス/ワークスペース

です私はマスターノードでこのビルドを推測

。スレーブノードに/ホーム/ジェンキンス/ワークスペース/ 71bnh8co385ctlmoxgbumdnpnet3ywqディレクトリを見つけることができますが、私は、スレーブキューにドンプラグイン

答えて

1

ジェンキンスドッキングウィンドウ-ビルドステップをタスクを参照してください イメージを作成してイメージを作成できるスレーブにjarを追加します。スレーブでmasterを呼び出します。

0

これが当てはまるかどうかわからない場合は、スレーブノードで実行するサポートタスクをスレーブノードで実行してください。ここでは、JenkinsがタスクでDockerfileへのパスを設定していると思われます。つまり、ビルドステージには$WORKSPACE/dockerというタスクがあります。 o作業領域/ gitリポジトリにそのフォルダ(Dockerfileと他の必要なファイルを含む)があることを確認するか、上のパスENVからdockerを削除してください(もっと良い解決策、imho)、Jenkinsはmain workspace/gitディレクトリからDockerfileを読み込みます。希望が役立ちます。

関連する問題