maven - Can't execute "mvn clean package" task in GO CD -


i have setup "hello world" pipeline 1 task mvn clean package in go cd. have registered agent java , maven , running.

when trigger pipeline, job fails:

12:05:08.655 [go] start execute task: <exec command="mvn" > <arg>clean package</arg> </exec>. 12:05:08.660 error happened while attempting execute 'mvn clean package'.  please make sure [mvn] can executed on agent. 

if execute mvn clean package in agent, works. happening? there place can see more specific logs?

instead of running following:

command:

mvn clean package 

try use

command:

/bin/bash 

arguments:

-c mvn clean package 

Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -