Click on Save.
Now build the project so that it uploads the BAR files on the repository and tags the code. The snippet below shows a successful build of the Publisher_api project (Output has been trimmed for brevity).
Started by user anand
Obtained Publisher_api/build/jenkinsfile from git https://github.ibm.com/anand-awasthi/Publisher_api.git
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] timestamps
[Pipeline] {
[Pipeline] node
21:58:35 Running on Jenkins in /var/lib/jenkins/jobs/Publisher_api/workspace
[Pipeline] {
[Pipeline] wrap
21:58:35 Xvfb starting$ /usr/bin/Xvfb :0 -screen 0 1024x768x24 -fbdir /var/lib/jenkins/xvfb-1-..fbdir1142937909955833988
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Publisher_API - Checkout)
[Pipeline] checkout
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Publisher_API - Build)
[Pipeline] withMaven
21:58:36 [withMaven] Options: []
21:58:36 [withMaven] Available options:
21:58:36 [withMaven] using JDK installation provided by the build agent
21:58:36 [withMaven] using Maven installation 'maven'
[Pipeline] {
[Pipeline] sh
21:58:37 + mvn -f Publisher_api/pom.xml -B release:prepare release:perform
21:58:37 ----- withMaven Wrapper script -----
21:58:37 Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/var/lib/jenkins/jobs/Publisher_api/workspace@tmp/withMaven3d9d46eb/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/var/lib/jenkins/jobs/Publisher_api/workspace@tmp/withMaven3d9d46eb"
21:58:37 Apache Maven 3.6.0
21:58:37 Maven home: /usr/share/maven
21:58:37 Java version: 1.8.0_265, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
21:58:37 Default locale: en, platform encoding: UTF-8
21:58:37 OS name: "linux", version: "4.15.0-88-generic", arch: "amd64", family: "unix"
21:58:38 [INFO] [jenkins-event-spy] Generate /var/lib/jenkins/jobs/Publisher_api/workspace@tmp/withMaven3d9d46eb/maven-spy-20200809-162838-1643435097943494995579.log.tmp ...
21:58:38 [INFO] Scanning for projects...
21:58:39 [INFO]
21:58:39 [INFO] ---------------------< com.ibm.esb:Publisher_api >----------------------
21:58:39 [INFO] Building Publisher_api 2.0-SNAPSHOT
21:58:39 [INFO] ------------------------------[ ace-bar ]-------------------------------
21:58:39 [INFO]
21:58:39 [INFO] --- maven-release-plugin:2.5.3:prepare (default-cli) @ Publisher_api ---
21:58:40 [INFO] Verifying that there are no local modifications...
21:58:40 [INFO] ignoring changes on: **/pom.xml.releaseBackup, **/pom.xml.next, **/pom.xml.tag, **/pom.xml.branch, **/release.properties, **/pom.xml.backup
21:58:40 [INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/Publisher_api/workspace/Publisher_api && git rev-parse --show-toplevel
21:58:40 [INFO] Working directory: /var/lib/jenkins/jobs/Publisher_api/workspace/Publisher_api
21:58:40 [INFO] Executing: /bin/sh -c cd /var/lib/jenkins/jobs/Publisher_api/workspace/Publisher_api && git status --porcelain .
21:58:40 [INFO] Working directory: /var/lib/jenkins/jobs/Publisher_api/workspace/Publisher_api
workspace/Publisher_api/properties/DEV.properties
22:00:51 [INFO] [INFO] BIP1138I: Applying overrides using runtime mqsiapplybaroverride...
22:00:52 [INFO] [INFO] BIP1140I: Overriding property gen.Publisher_api#additionalInstances with '0' in 'Publisher_api.appzip/META-INF/broker.xml' ...
22:00:52 [INFO] [INFO] BIP1143I: Saving Bar file /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/target/ace/DEV_2.0.bar...
22:00:52 [INFO] [INFO]
22:00:52 [INFO] [INFO] BIP8071I: Successful command completion.
22:00:52 [INFO] [INFO]
22:00:52 [INFO] [INFO] --- ace-maven-plugin:11.38:clean-bar-build-workspace (default-clean-bar-build-workspace) @ Publisher_api ---
22:00:52 [INFO] [INFO] debugWorkspace enabled - workspace will not be cleaned
22:00:52 [INFO] [INFO]
22:00:52 [INFO] [INFO] --- ace-maven-plugin:11.38:validate-classloader-approach (default-validate-classloader-approach) @ Publisher_api ---
22:00:52 [INFO] [INFO] Reading configurable properties from: /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/target/ace/Publisher_api.properties
22:00:52 [INFO] [INFO]
22:00:52 [INFO] [INFO] --- ace-maven-plugin:11.38:package-ace-bar (default-package-ace-bar) @ Publisher_api ---
22:00:52 [INFO] [INFO] Building zip: /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/target/Publisher_api-2.0.zip
22:00:52 [INFO] [INFO]
22:00:52 [INFO] [INFO] --- maven-source-plugin:3.0.0:jar-no-fork (attach-sources) @ Publisher_api ---
22:00:52 [INFO] [INFO] Building jar: /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/target/Publisher_api-2.0-sources.jar
22:00:52 [INFO] [INFO]
22:00:52 [INFO] [INFO] --- maven-javadoc-plugin:2.10.3:jar (attach-javadocs) @ Publisher_api ---
22:00:53 [INFO] [INFO] Not executing Javadoc as the project is not a Java classpath-capable package
22:00:53 [INFO] [INFO]
22:00:53 [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ Publisher_api ---
22:00:53 [INFO] [INFO] No primary artifact to install, installing attached artifacts instead.
22:00:53 [INFO] [INFO] Installing /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/pom.xml to /var/lib/jenkins/.m2/repository/com/ibm/esb/Publisher_api/2.0/Publisher_api-2.0.pom
22:00:53 [INFO] [INFO] Installing /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/target/Publisher_api-2.0.zip to /var/lib/jenkins/.m2/repository/com/ibm/esb/Publisher_api/2.0/Publisher_api-2.0.zip
22:00:53 [INFO] [INFO] Installing /var/lib/jenkins/jobs/Publisher_api/perform-workspace/Publisher_api/target/Publisher_api-2.0-sources.jar to /var/lib/jenkins/.m2/repository/com/ibm/esb/Publisher_api/2.0/Publisher_api-2.0-sources.jar
22:00:53 [INFO] [INFO]
22:00:53 [INFO] [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ Publisher_api ---
22:00:53 [INFO] [INFO] No primary artifact to deploy, deploying attached artifacts instead.
22:00:53 [INFO] [INFO] Uploaded to releases: http://127.0.0.1:8044/nexus/repository/releases/com/ibm/esb/Publisher_api/2.0/Publisher_api-2.0.zip (9.3 kB at 274 kB/s)
22:00:53 [INFO] [INFO] Uploading to releases: http://127.0.0.1:8044/nexus/repository/releases/com/ibm/esb/Publisher_api/2.0/Publisher_api-2.0-sources.jar
22:00:53 [INFO] [INFO] Uploaded to releases: http://127.0.0.1:8044/nexus/repository/releases/com/ibm/esb/Publisher_api/2.0/Publisher_api-2.0-sources.jar (33 kB at 540 kB/s)
22:00:53 [INFO] [INFO] ------------------------------------------------------------------------
22:00:53 [INFO] [INFO] BUILD SUCCESS
22:00:53 [INFO] [INFO] ------------------------------------------------------------------------
22:00:53 [INFO] [INFO] Total time: 58.922 s
22:00:53 [INFO] [INFO] Finished at: 2020-08-09T16:30:53Z
22:00:53 [INFO] [INFO] ------------------------------------------------------------------------
22:00:53 [INFO] [INFO] [jenkins-event-spy] Generated /var/lib/jenkins/jobs/Publisher_api/workspace@tmp/withMaven3d9d46eb/maven-spy-20200809-162954-4558739549619705143723.log
22:00:53 [INFO] Cleaning up after release...
22:00:53 [INFO] ------------------------------------------------------------------------
22:00:53 [INFO] BUILD SUCCESS
22:00:53 [INFO] ------------------------------------------------------------------------
22:00:53 [INFO] Total time: 02:15 min
22:00:53 [INFO] Finished at: 2020-08-09T16:30:53Z