Apigee deployment throug jenkins

Hi,

I would like to deploy apiproxy to the test and prod environment through Jenkins. Below you can see my project folder structure and pom files.

In my jenkinsfile tried 2 different command for deploy but for both of them I received an error.Could you please help me for how I can resolve the issue ?

Project Folder Structure.

9517-projectfolder.jpg

h "mvn apigee-enterprise:deploy -Ptest -Dusername=${apigeeUsername} -Dpassword=${apigeePassword} "

9520-jenkinslog2.jpg

h "mvn -f wiservice_api_v1/pom.xml install -Ptest -Dusername=${apigeeUsername} -Dpassword=${apigeePassword} -Dapigee.config.options=update"

9518-jenkinslog.jpg

pom.txt

shared-pom.txt

Regards,

0 2 193
2 REPLIES 2

For your first error,

Check your shared-pom.xml file. You need to have a profile there,

<profiles><profile><id>test</id>

Check this sample,

https://github.com/apigee/apigee-deploy-maven-plugin/blob/master/samples/forecastweatherapi-recommen...

Also check which host your are using.

Hi,

I have already a profile in my shared-pom.xml. I added the attachment in question.