Skip to content
Success

Console Output

Started by user Frederic Gurr
Running as Frederic Gurr
Running in Durability level: PERFORMANCE_OPTIMIZED
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
‘basic-agent-0rk39’ is offline; ‘centslave1’ is reserved for jobs with matching label expression; ‘fmlw3-ubuntu1804’ is reserved for jobs with matching label expression; ‘mac-tests2’ is reserved for jobs with matching label expression
Agent basic-agent-0rk39 is provisioned from template basic-agent
---
apiVersion: "v1"
kind: "Pod"
metadata:
  annotations: {}
  labels:
    jenkins: "slave"
    jenkins/label: ""
  name: "basic-agent-0rk39"
spec:
  containers:
  - env:
    - name: "MAVEN_OPTS"
      value: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn"
    - name: "JENKINS_SECRET"
      value: "********"
    - name: "JENKINS_TUNNEL"
      value: "jenkins-discovery.cbi.svc.cluster.local:50000"
    - name: "JENKINS_AGENT_NAME"
      value: "basic-agent-0rk39"
    - name: "MAVEN_CONFIG"
      value: "-B -e"
    - name: "JENKINS_NAME"
      value: "basic-agent-0rk39"
    - name: "JENKINS_AGENT_WORKDIR"
      value: "/home/jenkins/agent"
    - name: "JENKINS_URL"
      value: "http://jenkins-ui.cbi.svc.cluster.local/cbi/"
    image: "eclipsecbijenkins/basic-agent:4.2"
    imagePullPolicy: "Always"
    name: "jnlp"
    resources:
      limits:
        memory: "4096Mi"
        cpu: "2000m"
      requests:
        memory: "4096Mi"
        cpu: "1000m"
    securityContext:
      privileged: false
    tty: true
    volumeMounts:
    - mountPath: "/home/jenkins/.m2/toolchains.xml"
      name: "m2-dir"
      readOnly: true
      subPath: "toolchains.xml"
    - mountPath: "/opt/tools"
      name: "volume-0"
      readOnly: false
    - mountPath: "/home/jenkins"
      name: "volume-2"
      readOnly: false
    - mountPath: "/home/jenkins/.m2/repository"
      name: "volume-3"
      readOnly: false
    - mountPath: "/home/jenkins/.m2/settings-security.xml"
      name: "m2-secret-dir"
      readOnly: true
      subPath: "settings-security.xml"
    - mountPath: "/home/jenkins/.m2/wrapper"
      name: "volume-4"
      readOnly: false
    - mountPath: "/home/jenkins/.m2/settings.xml"
      name: "m2-secret-dir"
      readOnly: true
      subPath: "settings.xml"
    - mountPath: "/home/jenkins/.ssh"
      name: "volume-1"
      readOnly: false
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
    workingDir: "/home/jenkins/agent"
  nodeSelector:
    beta.kubernetes.io/os: "linux"
  restartPolicy: "Never"
  securityContext: {}
  volumes:
  - name: "volume-0"
    persistentVolumeClaim:
      claimName: "tools-claim-jiro-cbi"
      readOnly: true
  - name: "m2-secret-dir"
    secret:
      secretName: "m2-secret-dir"
  - emptyDir:
      medium: ""
    name: "volume-2"
  - configMap:
      name: "m2-dir"
    name: "m2-dir"
  - configMap:
      name: "known-hosts"
    name: "volume-1"
  - emptyDir:
      medium: ""
    name: "workspace-volume"
  - emptyDir:
      medium: ""
    name: "volume-4"
  - emptyDir:
      medium: ""
    name: "volume-3"

Running on basic-agent-0rk39 in /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Preparation)
[Pipeline] cleanWs
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] done
[Pipeline] tool
[Pipeline] tool
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] sh
+ gpg --version
gpg (GnuPG) 2.2.19
libgcrypt 1.8.5
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/jenkins/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
        CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2
[Pipeline] sh
+ JAVA_HOME=/opt/tools/java/oracle/jdk-8/latest /opt/tools/apache-maven/latest/bin/mvn -B -U archetype:generate '-DgroupId=com.mycompany.app' '-DartifactId=my-app' '-DarchetypeArtifactId=maven-archetype-quickstart' '-DinteractiveMode=false'
Picked up JAVA_TOOL_OPTIONS: -XX:+IgnoreUnrecognizedVMOptions -XX:+UseContainerSupport -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
Picked up _JAVA_OPTIONS: -XX:MaxRAMPercentage=64.0
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO] 
[INFO] >>> maven-archetype-plugin:3.1.2:generate (default-cli) > generate-sources @ standalone-pom >>>
[INFO] 
[INFO] <<< maven-archetype-plugin:3.1.2:generate (default-cli) < generate-sources @ standalone-pom <<<
[INFO] 
[INFO] 
[INFO] --- maven-archetype-plugin:3.1.2:generate (default-cli) @ standalone-pom ---
[INFO] Generating project in Batch mode
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: basedir, Value: /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: artifactId, Value: my-app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  23.101 s
[INFO] Finished at: 2020-05-08T16:38:51Z
[INFO] ------------------------------------------------------------------------
[Pipeline] sh
+ cat
[Pipeline] withCredentials
Masking supported pattern matches of $KEYRING
[Pipeline] {
[Pipeline] sh
+ gpg --batch --import ****
gpg: directory '/home/jenkins/.gnupg' created
gpg: keybox '/home/jenkins/.gnupg/pubring.kbx' created
gpg: /home/jenkins/.gnupg/trustdb.gpg: trustdb created
gpg: key 5C391A7948D74D48: public key "Eclipse CBI Project <cbi-dev@eclipse.org>" imported
gpg: To migrate 'secring.gpg', with each smartcard, run: gpg --card-status
gpg: key 5C391A7948D74D48: secret key imported
gpg: Total number processed: 1
gpg:               imported: 1
gpg:       secret keys read: 1
gpg:   secret keys imported: 1
[Pipeline] sh
+ gpg --list-keys --with-colons
+ awk -F: '/fpr:/ {print $10}'
+ sort -u
+ echo -e '5
y
'
+ gpg --batch --command-fd 0 --expert --edit-key 5C997505C3B6BDF15046D1BD25FB28D82622151E trust
Secret subkeys are available.

pub  rsa4096/5C391A7948D74D48
     created: 2015-09-24  expires: 2020-09-22  usage: SC  
     trust: unknown       validity: unknown
ssb  rsa4096/25FB28D82622151E
     created: 2015-09-24  expires: 2020-09-22  usage: S   
[ unknown] (1). Eclipse CBI Project <cbi-dev@eclipse.org>

pub  rsa4096/5C391A7948D74D48
     created: 2015-09-24  expires: 2020-09-22  usage: SC  
     trust: unknown       validity: unknown
ssb  rsa4096/25FB28D82622151E
     created: 2015-09-24  expires: 2020-09-22  usage: S   
[ unknown] (1). Eclipse CBI Project <cbi-dev@eclipse.org>

Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)

  1 = I don't know or won't say
  2 = I do NOT trust
  3 = I trust marginally
  4 = I trust fully
  5 = I trust ultimately
  m = back to the main menu


pub  rsa4096/5C391A7948D74D48
     created: 2015-09-24  expires: 2020-09-22  usage: SC  
     trust: ultimate      validity: unknown
ssb  rsa4096/25FB28D82622151E
     created: 2015-09-24  expires: 2020-09-22  usage: S   
[ unknown] (1). Eclipse CBI Project <cbi-dev@eclipse.org>
Please note that the shown key validity is not necessarily correct
unless you restart the program.

+ echo -e '5
y
'
+ gpg --batch --command-fd 0 --expert --edit-key 749087D01D6FBF7A68B8DF365C391A7948D74D48 trust
Secret subkeys are available.

gpg: checking the trustdb
gpg: marginals needed: 3  completes needed: 1  trust model: pgp
gpg: depth: 0  valid:   1  signed:   0  trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: next trustdb check due at 2020-09-22
pub  rsa4096/5C391A7948D74D48
     created: 2015-09-24  expires: 2020-09-22  usage: SC  
     trust: ultimate      validity: ultimate
ssb  rsa4096/25FB28D82622151E
     created: 2015-09-24  expires: 2020-09-22  usage: S   
[ultimate] (1). Eclipse CBI Project <cbi-dev@eclipse.org>

pub  rsa4096/5C391A7948D74D48
     created: 2015-09-24  expires: 2020-09-22  usage: SC  
     trust: ultimate      validity: ultimate
ssb  rsa4096/25FB28D82622151E
     created: 2015-09-24  expires: 2020-09-22  usage: S   
[ultimate] (1). Eclipse CBI Project <cbi-dev@eclipse.org>

Please decide how far you trust this user to correctly verify other users' keys
(by looking at passports, checking fingerprints from different sources, etc.)

  1 = I don't know or won't say
  2 = I do NOT trust
  3 = I trust marginally
  4 = I trust fully
  5 = I trust ultimately
  m = back to the main menu


pub  rsa4096/5C391A7948D74D48
     created: 2015-09-24  expires: 2020-09-22  usage: SC  
     trust: ultimate      validity: ultimate
ssb  rsa4096/25FB28D82622151E
     created: 2015-09-24  expires: 2020-09-22  usage: S   
[ultimate] (1). Eclipse CBI Project <cbi-dev@eclipse.org>

[Pipeline] sh
+ JAVA_HOME=/opt/tools/java/oracle/jdk-8/latest /opt/tools/apache-maven/latest/bin/mvn -B -f my-app/pom.xml clean verify
Picked up JAVA_TOOL_OPTIONS: -XX:+IgnoreUnrecognizedVMOptions -XX:+UseContainerSupport -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
Picked up _JAVA_OPTIONS: -XX:MaxRAMPercentage=64.0
[INFO] Scanning for projects...
[INFO] 
[INFO] ----------------------< com.mycompany.app:my-app >----------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ my-app ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ my-app ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ my-app ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app/target/classes
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ my-app ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ my-app ---
[INFO] Changes detected - recompiling the module!
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 1 source file to /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app/target/test-classes
[INFO] 
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ my-app ---
[INFO] Surefire report directory: /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app/target/surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Picked up JAVA_TOOL_OPTIONS: -XX:+IgnoreUnrecognizedVMOptions -XX:+UseContainerSupport -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
Picked up _JAVA_OPTIONS: -XX:MaxRAMPercentage=64.0
Running com.mycompany.app.AppTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 sec

Results :

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

[INFO] 
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ my-app ---
[INFO] Building jar: /home/jenkins/agent/workspace/jiro_gpg_pipeline_example_scripted/my-app/target/my-app-1.0-SNAPSHOT.jar
[INFO] 
[INFO] --- maven-gpg-plugin:1.6:sign (sign-artifacts) @ my-app ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  15.265 s
[INFO] Finished at: 2020-05-08T16:39:13Z
[INFO] ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] sh
+ gpg --verify my-app/target/my-app-1.0-SNAPSHOT.jar.asc
gpg: assuming signed data in 'my-app/target/my-app-1.0-SNAPSHOT.jar'
gpg: Signature made Fri May  8 16:39:12 2020 UTC
gpg:                using RSA key 5C997505C3B6BDF15046D1BD25FB28D82622151E
gpg: Good signature from "Eclipse CBI Project <cbi-dev@eclipse.org>" [ultimate]
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
Finished: SUCCESS