maven - Jenkins pipeline re-writing mvn command and causing a failure -
in multi-repo pipeline, i'm trying commit version update , push nexus. sh step seems re-writing mvn command , commit message seen build phase.
here code:
def message = "ci: committing version ${version}" def build_command = "mvn clean deploy scm:checkin -p${profiles_to_build} \"-dmessage=${message}\" -dconnectiontype=ssh -dpushchanges=true -ddeployatend=true" echo build_command sh """ #!/bin/bash -xe ${build_command} """
here output
[pipeline] echo mvn clean deploy scm:checkin -pall "-dmessage=ci: committing version 5.19731121.1" -dconnectiontype=ssh -dpushchanges=true -ddeployatend=true [pipeline] sh [darwin] running shell script + mvn clean deploy scm:checkin -pall '-dmessage=ci: committing version 5.19731121.1' -dconnectiontype=ssh -dpushchanges=true -ddeployatend=true .... [error] unknown lifecycle phase "committing". must specify valid lifecycle phase or goal in 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] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/lifecyclephasenotfoundexception
Comments
Post a Comment