-
Bug
-
Resolution: Done
-
Medium
-
None
-
Istanbul Release
-
None
-
None
in PM-Mapper dockerfile:
LABEL git.branch="${git.branch}" \ git.build.host="${git.build.host}" \ git.build.time="${git.build.time}" \ git.build.user.email="${git.build.user.email}" \ git.build.user.name="${git.build.user.name}" \ git.build.version="${git.build.version}" \ git.closest.tag.name="${git.closest.tag.name}" \ git.commit.id="${git.commit.id}" \ git.commit.message.short="${git.commit.message.short}" \ git.commit.time="${git.commit.time}" \ git.commit.user.email="${git.commit.user.email}" \ git.commit.user.name="${git.commit.user.name}"
specifically:
git.commit.message.short="${git.commit.message.short}" {code}
If commit message contains quotation marks it fails the build, because the original quotation is closed too quickly.
Example failing build: https://jenkins.onap.org/job/dcaegen2-services-pm-mapper-merge-verification-maven-master/6/
we can see in logs:
15:49:40 [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.30.0:build (default-cli) on project pm-mapper: Unable to build image [onap/org.onap.dcaegen2.services.pm-mapper:latest] : {"message":"failed to parse Dockerfile: Syntax error - can't find = in \"CSIT\". Must be of the form: name=value"} (Bad Request: 400) -> [Help 1]15:49:40 org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.30.0:build (default-cli) on project pm-mapper: Unable to build image [onap/org.onap.dcaegen2.services.pm-mapper:latest] : {"message":"failed to parse Dockerfile: Syntax error - can't find = in \"CSIT\". Must be of the form: name=value"} (Bad Request: 400)