Skip to content
This repository has been archived by the owner on Jul 9, 2019. It is now read-only.

mvn deploy no longer works in DevTools with Server credentials with ID "ossrh" not found! #9

Closed
jstrachan opened this issue Apr 11, 2017 · 11 comments

Comments

@jstrachan
Copy link

do the boosters do something now with staging plugins or explicitly specify distribution properties or something? This used to work fine but seems to have broken recently...

Will see if we can add some extra property or something to disable/configure this...

Here's the log for the pipeline using Vertx Booster:

Branch indexing
Cloning the remote Git repository
Cloning repository https://github.com/jstrachan/demovertxh1.git
 > git init /var/lib/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@script # timeout=10
Fetching upstream changes from https://github.com/jstrachan/demovertxh1.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/jstrachan/demovertxh1.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/jstrachan/demovertxh1.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/jstrachan/demovertxh1.git # timeout=10
Fetching upstream changes from https://github.com/jstrachan/demovertxh1.git
 > git fetch --tags --progress https://github.com/jstrachan/demovertxh1.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 63772a1ebe1cd2557c1151852de69ddfc83effaf (origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 63772a1ebe1cd2557c1151852de69ddfc83effaf
First time build. Skipping changelog.
Loading library github.com/fabric8io/fabric8-pipeline-library@master
 > git rev-parse --is-inside-work-tree # timeout=10
Setting origin to https://github.com/fabric8io/fabric8-pipeline-library.git
 > git config remote.origin.url https://github.com/fabric8io/fabric8-pipeline-library.git # timeout=10
Fetching origin...
Fetching upstream changes from origin
 > git --version # timeout=10
 > git fetch --tags --progress origin +refs/heads/*:refs/remotes/origin/*
 > git rev-parse master^{commit} # timeout=10
 > git rev-parse origin/master^{commit} # timeout=10
Cloning the remote Git repository
Cloning repository https://github.com/fabric8io/fabric8-pipeline-library.git
 > git init /var/lib/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@libs/github.com/fabric8io/fabric8-pipeline-library # timeout=10
Fetching upstream changes from https://github.com/fabric8io/fabric8-pipeline-library.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/fabric8io/fabric8-pipeline-library.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/fabric8io/fabric8-pipeline-library.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/fabric8io/fabric8-pipeline-library.git # timeout=10
Fetching upstream changes from https://github.com/fabric8io/fabric8-pipeline-library.git
 > git fetch --tags --progress https://github.com/fabric8io/fabric8-pipeline-library.git +refs/heads/*:refs/remotes/origin/*
Checking out Revision 4cb48adb4c70c9ad405ed10299fcb30950599bdd (master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 4cb48adb4c70c9ad405ed10299fcb30950599bdd
First time build. Skipping changelog.
[Pipeline] podTemplate
[Pipeline] {
[Pipeline] node
Still waiting to schedule task
All nodes of label ‘maven.jstrachan_demovertxh1_master.1’ are offline
Running on jenkins-slave-0570m-wp90t in /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA
[Pipeline] {
[Pipeline] git
Cloning the remote Git repository
Cloning repository https://github.com/jstrachan/demovertxh1.git
 > git init /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA # timeout=10
Fetching upstream changes from https://github.com/jstrachan/demovertxh1.git
 > git --version # timeout=10
 > git fetch --tags --progress https://github.com/jstrachan/demovertxh1.git +refs/heads/*:refs/remotes/origin/*
 > git config remote.origin.url https://github.com/jstrachan/demovertxh1.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git config remote.origin.url https://github.com/jstrachan/demovertxh1.git # timeout=10
Fetching upstream changes from https://github.com/jstrachan/demovertxh1.git
 > git fetch --tags --progress https://github.com/jstrachan/demovertxh1.git +refs/heads/*:refs/remotes/origin/*
 > git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 63772a1ebe1cd2557c1151852de69ddfc83effaf (refs/remotes/origin/master)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 63772a1ebe1cd2557c1151852de69ddfc83effaf
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b master 63772a1ebe1cd2557c1151852de69ddfc83effaf
First time build. Skipping changelog.
[Pipeline] echo
NOTE: running pipelines for the first time will take longer as build and base docker images are pulled onto the node
[Pipeline] container
[Pipeline] {
[Pipeline] stage (Build Release)
Using the ‘stage’ step without a block argument is deprecated
Entering stage Build Release
Proceeding
[Pipeline] sh
[strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA] Running shell script
Executing shell script inside container [maven] of pod [jenkins-slave-0570m-wp90t]
Executing command: sh -c echo $$ > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-1c078b83/pid'; jsc=durable-4bd08bc01d50b4b90ebddc3c99984d20; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-1c078b83/script.sh' > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-1c078b83/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-1c078b83/jenkins-result.txt' 
�[?1034hsh-4.2$ cd "/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3E 
YMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA"
sh-4.2$ sh -c echo $$ > '/home/jenkins/workspace/strachan_demovertxh1_master-TTK 
NLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-1c078b83/pid'; jsc 
=durable-4bd08bc01d50b4b90ebddc3c99984d20; JENKINS_SERVER_COOKIE=$jsc '/home/jen 
kins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35 
Q5DRCLIPGF3WSZA@tmp/durable-1c078b83/script.sh' > '/home/jenkins/workspace/strac 
han_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/ 
durable-1c078b83/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/strac 
han_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/ 
durable-1c078b83/jenkins-result.txt' 
sh-4.2$ exit
exit
+ git checkout -b jstrachan/demovertxh1/master-1.0.1
Switched to a new branch 'jstrachan/demovertxh1/master-1.0.1'
[Pipeline] sh
[strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA] Running shell script
Executing shell script inside container [maven] of pod [jenkins-slave-0570m-wp90t]
Executing command: sh -c echo $$ > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-eea8edcc/pid'; jsc=durable-4bd08bc01d50b4b90ebddc3c99984d20; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-eea8edcc/script.sh' > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-eea8edcc/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-eea8edcc/jenkins-result.txt' 
�[?1034hsh-4.2$ cd "/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3E 
YMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA"
sh-4.2$ sh -c echo $$ > '/home/jenkins/workspace/strachan_demovertxh1_master-TTK 
NLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-eea8edcc/pid'; jsc 
=durable-4bd08bc01d50b4b90ebddc3c99984d20; JENKINS_SERVER_COOKIE=$jsc '/home/jen 
kins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35 
Q5DRCLIPGF3WSZA@tmp/durable-eea8edcc/script.sh' > '/home/jenkins/workspace/strac 
han_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/ 
durable-eea8edcc/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/strac 
han_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/ 
durable-eea8edcc/jenkins-result.txt' 
+ mvn org.codehaus.mojo:versions-maven-plugin:2.2:set -U -DnewVersion=1.0.1
[INFO] Scanning for projects...
[INFO] Downloading: http://central.maven.org/maven2/io/openshift/booster-parent/3/booster-parent-3.pom
[INFO] Downloaded: http://central.maven.org/maven2/io/openshift/booster-parent/3/booster-parent-3.pom (13 KB at 84.9 KB/sec)
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Vert.x - HTTP 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- versions-maven-plugin:2.2:set (default-cli) @ demovertxh1 ---
sh-4.2$ exit
exit
[INFO] Searching for local aggregator root...
[INFO] Local aggregation root: /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA
[INFO] Processing change of com.example:demovertxh1:1.0.0-SNAPSHOT -> 1.0.1
[INFO] Processing com.example:demovertxh1
[INFO]     Updating project com.example:demovertxh1
[INFO]         from version 1.0.0-SNAPSHOT to 1.0.1
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.477 s
[INFO] Finished at: 2017-04-11T15:33:46+00:00
[INFO] Final Memory: 17M/491M
[INFO] ------------------------------------------------------------------------
[Pipeline] sh
[strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA] Running shell script
Executing shell script inside container [maven] of pod [jenkins-slave-0570m-wp90t]
Executing command: sh -c echo $$ > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-3e4d307c/pid'; jsc=durable-4bd08bc01d50b4b90ebddc3c99984d20; JENKINS_SERVER_COOKIE=$jsc '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-3e4d307c/script.sh' > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-3e4d307c/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-3e4d307c/jenkins-result.txt' 
�[?1034hsh-4.2$ cd "/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3E 
YMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA"
sh-4.2$ sh -c echo $$ > '/home/jenkins/workspace/strachan_demovertxh1_master-TTK 
NLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/durable-3e4d307c/pid'; jsc 
=durable-4bd08bc01d50b4b90ebddc3c99984d20; JENKINS_SERVER_COOKIE=$jsc '/home/jen 
kins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35 
Q5DRCLIPGF3WSZA@tmp/durable-3e4d307c/script.sh' > '/home/jenkins/workspace/strac 
han_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/ 
durable-3e4d307c/jenkins-log.txt' 2>&1; echo $? > '/home/jenkins/workspace/strac 
han_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA@tmp/ 
durable-3e4d307c/jenkins-result.txt' 
+ mvn clean -e -U deploy -Dmaven.test.skip=false -P openshift
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Vert.x - HTTP 1.0.1
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://central.maven.org/maven2/io/openshift/openshift-test-utils/1/openshift-test-utils-1.pom
[INFO] Downloaded: http://central.maven.org/maven2/io/openshift/openshift-test-utils/1/openshift-test-utils-1.pom (2 KB at 5.3 KB/sec)
[INFO] Downloading: http://central.maven.org/maven2/io/openshift/booster-common/1/booster-common-1.pom
[INFO] Downloaded: http://central.maven.org/maven2/io/openshift/booster-common/1/booster-common-1.pom (7 KB at 399.6 KB/sec)
[INFO] Downloading: http://central.maven.org/maven2/io/openshift/openshift-test-utils/1/openshift-test-utils-1.jar
[INFO] Downloaded: http://central.maven.org/maven2/io/openshift/openshift-test-utils/1/openshift-test-utils-1.jar (7 KB at 301.1 KB/sec)
[INFO] 
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ demovertxh1 ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-java-version) @ demovertxh1 ---
[INFO] 
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (enforce-maven-version) @ demovertxh1 ---
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.4:create (get-scm-revision) @ demovertxh1 ---
[INFO] Executing: /bin/sh -c cd '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA' && 'git' 'rev-parse' '--verify' 'HEAD'
[INFO] Working directory: /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA
[INFO] Storing buildNumber: 63772a1ebe1cd2557c1151852de69ddfc83effaf at timestamp: 1491924833013
[INFO] Storing buildScmBranch: jstrachan/demovertxh1/master-1.0.1
[INFO] 
[INFO] --- vertx-maven-plugin:1.0.6:initialize (vmp) @ demovertxh1 ---
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ demovertxh1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] 
[INFO] --- fabric8-maven-plugin:3.2.28:resource (fmp) @ demovertxh1 ---
[INFO] F8: Running in OpenShift mode
[INFO] F8: Using docker image name of namespace: jastrachan-jenkins
[INFO] F8: Running generator vertx
[INFO] F8: vertx: Using Docker image fabric8/java-alpine-openjdk8-jdk:1.2 as base / builder
[INFO] F8: Using resource templates from /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/src/main/fabric8
[INFO] F8: fmp-controller: Adding a default Deployment
[INFO] F8: fmp-service: Adding a default Service with ports [8080]
[INFO] F8: vertx-health-check: Adding readiness probe on port 8080, path='/', scheme='HTTP', with initial delay 10 seconds
[INFO] F8: vertx-health-check: Adding liveness probe on port 8080, path='/', scheme='HTTP', with initial delay 180 seconds
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ demovertxh1 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ demovertxh1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ demovertxh1 ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 2 source files to /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ demovertxh1 ---
[INFO] Surefire report directory: /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running io.openshift.booster.HttpApplicationTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Apr 11, 2017 3:34:00 PM io.netty.util.internal.MacAddressUtil defaultMachineId
WARNING: Failed to find a usable hardware address from the network interfaces; using random bytes: 2c:a2:8a:29:40:8d:9b:4b
Server starter on port 8080
Server starter on port 8080
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.716 sec - in io.openshift.booster.HttpApplicationTest

Results :

Tests run: 2, Failures: 0, Errors: 0, Skipped: 0

[INFO] 
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ demovertxh1 ---
[INFO] Building jar: /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/demovertxh1-1.0.1.jar
[INFO] 
[INFO] --- vertx-maven-plugin:1.0.6:package (vmp) @ demovertxh1 ---
[INFO] Executing: /bin/sh -c cd '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA' && 'git' 'whatchanged' '--until=2017-04-11 15:34:02 +0000' '--date=iso' '--' '/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA'
[INFO] Working directory: /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA
[INFO] 
[INFO] --- fabric8-maven-plugin:3.2.28:build (fmp) @ demovertxh1 ---
[INFO] F8: Using OpenShift build with strategy S2I
[INFO] F8: Running generator vertx
[INFO] F8: vertx: Using Docker image fabric8/s2i-java:2.0 as base / builder
[INFO] Copying files to /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/docker/demovertxh1/1.0.1/build/maven
[INFO] Building tar: /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/docker/demovertxh1/1.0.1/tmp/docker-build.tar
[INFO] F8: [demovertxh1:1.0.1] "vertx": Created docker source tar /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/docker/demovertxh1/1.0.1/tmp/docker-build.tar
[INFO] F8: Creating BuildServiceConfig demovertxh1-s2i for Source build
[INFO] F8: Creating ImageStream demovertxh1
[INFO] F8: Starting Build demovertxh1-s2i
[INFO] F8: Waiting for build demovertxh1-s2i-1 to complete...
[INFO] F8: Receiving source from STDIN as archive ...
[INFO] F8: Pulling image "fabric8/s2i-java:2.0" ...
[INFO] WebSocket successfully opened
[INFO] F8: Pulling image "fabric8/s2i-java:2.0" ...
[INFO] F8: ==================================================================
[INFO] F8: Starting S2I Java Build .....
[INFO] F8: S2I binary build from fabric8-maven-plugin detected
[INFO] F8: Copying binaries from /tmp/src/maven to /deployments ...
[INFO] F8: ... done
[INFO] F8: 
[INFO] F8: Pushing image 172.30.215.46:5000/jastrachan-jenkins/demovertxh1:1.0.1 ...
[INFO] F8: Pushed 0/23 layers, 0% complete
[INFO] F8: Pushed 1/23 layers, 4% complete
[INFO] F8: Build demovertxh1-s2i-1 Complete
[INFO] WebSocket close received. code: 1000, reason: 
[WARNING] Ignoring onClose for already closed/closing websocket
[INFO] F8: Found tag on ImageStream demovertxh1 tag: sha256:44c7b729f60903baee2c131d0659680c869e6fddad5e2a0d0f767f28d477699d
[INFO] F8: ImageStream demovertxh1 written to /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/demovertxh1-is.yml
[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ demovertxh1 ---
[INFO] Installing /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/demovertxh1-1.0.1.jar to /root/.mvnrepository/com/example/demovertxh1/1.0.1/demovertxh1-1.0.1.jar
[INFO] Installing /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/pom.xml to /root/.mvnrepository/com/example/demovertxh1/1.0.1/demovertxh1-1.0.1.pom
[INFO] Installing /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/classes/META-INF/fabric8/openshift.yml to /root/.mvnrepository/com/example/demovertxh1/1.0.1/demovertxh1-1.0.1-openshift.yml
[INFO] Installing /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/classes/META-INF/fabric8/openshift.json to /root/.mvnrepository/com/example/demovertxh1/1.0.1/demovertxh1-1.0.1-openshift.json
[INFO] Installing /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/classes/META-INF/fabric8/kubernetes.yml to /root/.mvnrepository/com/example/demovertxh1/1.0.1/demovertxh1-1.0.1-kubernetes.yml
[INFO] Installing /home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/classes/META-INF/fabric8/kubernetes.json to /root/.mvnrepository/com/example/demovertxh1/1.0.1/demovertxh1-1.0.1-kubernetes.json
[INFO] 
[INFO] --- nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) @ demovertxh1 ---
[INFO] Performing local staging (local stagingDirectory="/home/jenkins/workspace/strachan_demovertxh1_master-TTKNLWEIZGFMFR3EYMUDLAW5BBVPPQ73MXE35Q5DRCLIPGF3WSZA/target/nexus-staging/staging")...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 45.821 s
[INFO] Finished at: 2017-04-11T15:34:34+00:00
[INFO] Final Memory: 45M/487M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project demovertxh1: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Server credentials with ID "ossrh" not found! -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy (injected-nexus-deploy) on project demovertxh1: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Server credentials with ID "ossrh" not found!
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution injected-nexus-deploy of goal org.sonatype.plugins:nexus-staging-maven-plugin:1.6.7:deploy failed: Server credentials with ID "ossrh" not found!
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
	... 20 more
Caused by: java.lang.IllegalArgumentException: Server credentials with ID "ossrh" not found!
	at org.sonatype.nexus.maven.staging.remote.RemoteNexus.<init>(RemoteNexus.java:81)
	at org.sonatype.nexus.maven.staging.deploy.strategy.AbstractStagingDeployStrategy.createRemoteNexus(AbstractStagingDeployStrategy.java:54)
	at org.sonatype.nexus.maven.staging.deploy.strategy.StagingDeployStrategy.deployPerModule(StagingDeployStrategy.java:70)
	at org.sonatype.nexus.maven.staging.deploy.DeployMojo.execute(DeployMojo.java:192)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
	... 21 more
[ERROR] 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
sh-4.2$ exit
exit
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // podTemplate
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
@gastaldi
Copy link
Contributor

Why mvn deploy is used? Shouldn't it be fabric8:deploy instead?

@jstrachan
Copy link
Author

mvn deploy is used to release the artifacts (jars, poms, kubernetes manifests etc)

@jstrachan
Copy link
Author

I wonder if its the introduction of the nexus-staging-maven-plugin in the parent pom.xml?

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven-plugin.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>

If so I wonder if we can put it into some optional profile so its not activated OOTB? We don't want to use sonatype staging repo for releases on DevTools; we include a nexus-like thingy

@gastaldi
Copy link
Contributor

That makes sense. I think we should move it under a release profile

@cescoffier
Copy link

Yes that's our release process. What are you doing in the deploy phase ?

@jstrachan
Copy link
Author

jstrachan commented Apr 11, 2017

mvn deploy - or to be totally exact: mvn clean -e -U deploy -Dmaven.test.skip=false -P openshift

I guess I'm surprised that a generated quickstart has staging repo stuff enabled OOTB?

@cescoffier
Copy link

it comes from the parent, without this we can't release the parent to maven central.

Introducing a release profile, would actually introduce another profile in which the "verification build" is issued.

@cescoffier
Copy link

So you bind fabric8:deploy to the deploy phase. While deploy has a different semantic in Maven (done in the build environment, copies the final package to the remote repository for sharing with other developers and projects.).

To use it like that we need to redo the parent and release process (and probably give up with the maven central sync)

@jstrachan
Copy link
Author

FWIW on fabric8 we release archetypes to maven central; but the archetypes use different pom.xml files so we don't have issues of having stuff to release boosters/archetypes causing problems in generated projects.

I wonder if this relates to #10 as to whether or not the generated projects should use parent poms at all? Maybe a workaround is to just remove the parent pom in the wizard as the project is created?

@pmuir
Copy link

pmuir commented Apr 11, 2017

@jstrachan AIUI in this case we do want to run a deploy, as we want to deploy the code to a local content repository for the user as part of the CD pipeline, and having the quickstart's clobber this makes it hard.

I would suggest hat how we release the quickstart should not be part of quickstarts code, as the quickstart should be a learning experience for the end user.

@ALRubinger
Copy link
Contributor

I believe this may be closed by nature of the course of action detailed by #11 ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants