Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • I found AAI's "Gizmo" example a bit more helpful than the example listed above, line item 3, because the above one isn't ONAP specific.  AAF's works now as well, if you want to look at that too.  Look in "ci-management/jjb/<project>"
  • The new process assumes that you build your Docker Containers with Maven.  If you have some other method, you will need to get it to work with Maven.  I was able to by using Exec Plugin
  • The normal "deploy" for Java Projects in Maven are Jars into Nexus.  Deploying into Docker, however, is a different artifact type altogether.  You can handle each one at the correct steps by using "Maven Profiles"... I created one just in my Docker Build Directory called "build-docker", and used the "exec" goal, which means I could do the following for Maven Params: " install -maven.test.skip exec:exec -Pdocker-build". (note, "Tests already performed twice before... why make this happen again?)
  • Do make sure your Docker Build in Maven includes "docker push".  It's not enough to simply build the Docker image.  LF's Template will cover the Docker Login (they had to add the credentials in my case, once they did, it worked)
  • Realize that LF's Template will convert all the Maven Jar Versions with "-SNAPSHOT" (i.e.2.1.15-SNAPSHOT) into it's release version.  Your Docker Build/Push needs to recognize this, even though the DOCKER VERSION generated has "-SNAPSHOT" in it.  What this means is that your Docker may have version 2.1.15-SNAPSHOT, while the jars copied in will be 2.1.15.  Your Docker Build command need to handle this.
  • don't miss the "release" file above.  Lack of it caused maven to not run at all in my case.
    • LATE BREAKING: Call me dense, but I didn't realize that it is the CREATION and SUBMITTING of the releases/<version>.yaml that actually triggers the self-release.  When you are going to a new version, i.e. "2.1.16", in my case, you need to REMOVE this file until you are actually ready to release.  I put a "HowToRelease.txt" file explaining this in my home directory, because I'm sure I'll forget.
  • DO NOT BE DISCOURAGED!  If you keep cycling, reading the error outputs and pushing through, with LF's help, you'll make it!  (Thanks, Jess, Arin, Eric et al)