4.0.0 org.onap.so.adapters.so-etsi-sol005-adapter packages 1.8.0-SNAPSHOT org.onap.so.adapters.so-etsi-sol005-adapter.packages 1.8.0-SNAPSHOT pom docker SO ETSI SOL005 Adapter Docker Packaging ${project.version} false false false nexus3.onap.org:10001 nexus3.onap.org:10003 onap/so deploy ${project.artifactId}-${project.version} org.codehaus.groovy.maven gmaven-plugin 1.0 validate execute println 'Project version: ' + project.properties['sol005-adapter-project-version']; def versionArray; if (project.properties['sol005-adapter-project-version'] != null) { versionArray = project.properties['sol005-adapter-project-version'].split('-'); } if (project.properties['sol005-adapter-project-version'].endsWith("-SNAPSHOT")) { project.properties['project.docker.latesttag.version'] = versionArray[0] + "-SNAPSHOT-latest"; } else { project.properties['project.docker.latesttag.version'] = versionArray[0] + "-STAGING-latest"; } println 'New tag for docker: ' + project.properties['project.docker.latesttag.version']; io.fabric8 docker-maven-plugin true 1.23 ${docker.pull.registry} ${docker.push.registry} ${docker.image.prefix}/base-image:1.0 try docker-files/Dockerfile.so-base-image ${docker.image.prefix}/so-etsi-sol005-adapter try docker-files/Dockerfile.so-app ${project.version} ${project.version}-${maven.build.timestamp} ${project.docker.latesttag.version} org.onap.so.adapters.so-etsi-sol005-adapter:so-etsi-sol005-adapter-application app.jar clean-images pre-clean remove true generate-images generate-sources build push-images ${docker.push.phase} build push ${docker.image.prefix}/so-etsi-sol005-adapter org.apache.maven.plugins maven-deploy-plugin true org.onap.so.adapters.so-etsi-sol005-adapter so-etsi-sol005-adapter-application ${project.version}