org.onap.ccsdk.distribution distribution-opendaylight 0.2.0-SNAPSHOT 4.0.0 pom distribution-odl-carbon 0.2.0-SNAPSHOT Distribution - opendaylight Creates OpenDaylight container onap/ccsdk-odl-image ${project.version} 0.6.1-Carbon 2.1.1 ${https_proxy} org.opendaylight.integration distribution-karaf ${ccsdk.opendaylight.version} tar.gz org.mariadb.jdbc mariadb-java-client ${ccsdk.mariadb-connector-java.version} jar org.codehaus.groovy.maven gmaven-plugin validate execute println project.properties['ccsdk.project.version']; def versionArray; if (project.properties['ccsdk.project.version'] != null ) { versionArray = project.properties['ccsdk.project.version'].split('\\.'); } if (project.properties['ccsdk.project.version'].endsWith("-SNAPSHOT")) { project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; } else { project.properties['project.docker.latesttag.version']=versionArray[0]+'.' + versionArray[1]+"-STAGING-latest"; } println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; org.apache.maven.plugins maven-dependency-plugin 3.0.0 get-odl-distribution validate copy org.opendaylight.integration distribution-karaf ${ccsdk.opendaylight.version} tar.gz true ${basedir}/target/docker-stage false true true get-mariadb-connector-jar validate copy org.mariadb.jdbc mariadb-java-client ${ccsdk.mariadb-connector-java.version} jar true ${basedir}/target/docker-stage false true true maven-resources-plugin 2.6 copy-dockerfile copy-resources validate ${basedir}/target/docker-stage src/main/docker Dockerfile true docker io.fabric8 docker-maven-plugin 0.16.5 false ${image.name} try ${basedir}/target/docker-stage ${basedir}/target/docker-stage/Dockerfile ${project.version} ${project.version}-STAGING-${maven.build.timestamp} ${project.docker.latesttag.version} generate-images package build push-images deploy build push openECOMP org.onap.ccsdk.distribution