Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while compiling JIRA plugin from Bitbucket repo in Jenkins

Vedant Kulkarni
Contributor
May 13, 2018

I have JIRA plugin code in Bitbucket repo. I have given the path of atlas maven in Jenkins and create a free style project by invoking top level maven targets and given atlas maven name and goal as- atlas-compile.

After I build the job, it successfully connects the bitbucket repo but then gives error as-

 

[ERROR] Unknown lifecycle phase "atlas-compile". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [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/LifecyclePhaseNotFoundException
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

I am also getting one warning while building code-

[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-install-plugin/maven-metadata.xml from/to atlassian-plugin-sdk (file://${env.ATLAS_HOME}/repository): Repository path /repository does not exist, and cannot be created.

 

If am doing wrong, is there any other way to build jira add-on using jenkins.

0 answers

Suggest an answer

Log in or Sign up to answer