2017-09-13 6 views
0

構築Mavenの中にジェンキンススレーブノード上のpom.xmlファイルを見つけることができませんスレーブ1)。スレーブノードはMavenプロジェクトをコンパイルすることです。プロジェクトは、Gitlabインストールからプルダウンされます。ジェンキンスマスターは</p> <p><strong>ジェンキンスマスター</strong>(ジェンキンスマスタ)マシンと<strong>ジェンキンススレーブノード</strong>(jenkins-が存在することにより、私はセットアップを持って

マスター側のジェンキンスジョブを実行しているとき、私はコンソールで次のエラーを取得する:あなたが指定した

[ERROR]の目標は、実行するプロジェクトが必要ですが、 はにはPOMはありませんこのディレクトリ (/ var/jenkins/workspace/build-cc-restapi-dev)。正しいディレクトリから が呼び出されたMavenを確認してください。 - > [ヘルプ1]

Gitlabからコードを引っ張っても問題ありません。それはのpom.xmlがスレーブノード/マシン上でここに配置されているだけのことだ:

/var/jenkins/workspace/build-cc-restapi-dev/ccinfieldworkserver/pom.xml

The git cloning process is placing everything into: 

=> /var/jenkins/workspace/build-cc-restapi-dev/ccinfieldworkserver 
and not 
=> /var/jenkins/workspace/build-cc-restapi-dev/ 

がどのように私はこの問題を解決することができますしてください?

TIA

Started by user Jenkins Admin 
Building remotely on ubuntu16.04-slave-one (build-maven-project) in workspace /var/jenkins/workspace/build-cc-restapi-dev 
Cloning the remote Git repository 
Cloning repository [email protected]:CCININ/fieldwork-server.git 
> /usr/bin/git init /var/jenkins/workspace/build-cc-restapi-dev/ccinfieldworkserver # timeout=10 
Fetching upstream changes from [email protected]:CCININ/fieldwork-server.git 
> /usr/bin/git --version # timeout=10 
using GIT_SSH to set credentials Using jenkins ID on Gitlab to fetch code from GITLAB 
> /usr/bin/git fetch --tags --progress [email protected]:CCININ/fieldwork-server.git +refs/heads/*:refs/remotes/origin/* 
> /usr/bin/git config remote.origin.url [email protected]:CCININ/fieldwork-server.git # timeout=10 
> /usr/bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 
> /usr/bin/git config remote.origin.url [email protected]:CCININ/fieldwork-server.git # timeout=10 
Fetching upstream changes from [email protected]:CCININ/fieldwork-server.git 
using GIT_SSH to set credentials Using jenkins ID on Gitlab to fetch code from GITLAB 
> /usr/bin/git fetch --tags --progress [email protected]:CCININ/fieldwork-server.git +refs/heads/*:refs/remotes/origin/* 
> /usr/bin/git rev-parse refs/remotes/origin/dev^{commit} # timeout=10 
> /usr/bin/git rev-parse refs/remotes/origin/origin/dev^{commit} # timeout=10 
Checking out Revision 039b646001804b5fba636e514e85c9093a95ef5d (refs/remotes/origin/dev) 
Commit message: "second change to see what happens" 
> /usr/bin/git config core.sparsecheckout # timeout=10 
> /usr/bin/git checkout -f 039b646001804b5fba636e514e85c9093a95ef5d 
> /usr/bin/git rev-list 039b646001804b5fba636e514e85c9093a95ef5d # timeout=10 
[build-cc-restapi-dev] $ /opt/maven/bin/mvn clean package 
[INFO] Scanning for projects... 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 0.153 s 
[INFO] Finished at: 2017-09-13T15:50:15+00:00 
[INFO] Final Memory: 4M/10M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (/var/jenkins/workspace/build-cc-restapi-dev). Please verify you invoked Maven from the correct directory. -> [Help 1] 
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
[ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles: 
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException 
Build step 'Invoke top-level Maven targets' marked build as failure 
Finished: FAILURE 

答えて

0

気にしないで、私は私が直接ビルドの下にpom.xmlファイルの場所を指定することが分かっ - >「詳細設定」機能の下にトップレベルのMavenの目標を起動します。 TIA

関連する問題

 関連する問題