Skip to content

Console Output

Started by user Simon Bernard
Rebuilds build #31
Running as Simon Bernard
Obtained .jenkins/test.jenkins from git https://github.com/eclipse-leshan/leshan.git
[Pipeline] Start of Pipeline
[Pipeline] node
Still waiting to schedule task
Waiting for next available executor
Agent basic-qs3b5 is provisioned from template basic
---
apiVersion: "v1"
kind: "Pod"
metadata:
  labels:
    jenkins: "slave"
    jenkins/label-digest: "61a7508ed1b04e9ada836fcd14d4d8ef5687c7dd"
    jenkins/label: "basic"
  name: "basic-qs3b5"
  namespace: "leshan"
spec:
  containers:
  - env:
    - name: "JENKINS_SECRET"
      value: "********"
    - name: "JENKINS_TUNNEL"
      value: "jenkins-discovery.leshan.svc.cluster.local:50000"
    - name: "JENKINS_AGENT_NAME"
      value: "basic-qs3b5"
    - name: "JENKINS_REMOTING_JAVA_OPTS"
      value: "-showversion -XshowSettings:vm -Xmx256m -Dorg.jenkinsci.remoting.engine.JnlpProtocol3.disabled=true\
        \ -Dorg.jenkinsci.plugins.gitclient.CliGitAPIImpl.useSETSID=true"
    - name: "JAVA_TOOL_OPTIONS"
      value: ""
    - name: "_JAVA_OPTIONS"
      value: ""
    - name: "OPENJ9_JAVA_OPTIONS"
      value: "-XX:+IgnoreUnrecognizedVMOptions -XX:+IdleTuningCompactOnIdle -XX:+IdleTuningGcOnIdle"
    - name: "JENKINS_NAME"
      value: "basic-qs3b5"
    - name: "JENKINS_AGENT_WORKDIR"
      value: "/home/jenkins/agent"
    - name: "JENKINS_URL"
      value: "http://jenkins-ui.leshan.svc.cluster.local/leshan/"
    image: "docker.io/eclipsecbi/jiro-agent-basic:remoting-3160.vd76b_9ddd10cc"
    imagePullPolicy: "Always"
    name: "jnlp"
    resources:
      limits:
        cpu: "2000m"
        memory: "4096Mi"
      requests:
        cpu: "1000m"
        memory: "4096Mi"
    tty: true
    volumeMounts:
    - mountPath: "/home/jenkins/.m2/toolchains.xml"
      name: "m2-dir"
      readOnly: true
      subPath: "toolchains.xml"
    - mountPath: "/home/jenkins/.mavenrc"
      name: "m2-dir"
      readOnly: true
      subPath: ".mavenrc"
    - 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
      subPath: ""
    - mountPath: "/home/jenkins/agent"
      name: "workspace-volume"
      readOnly: false
    workingDir: "/home/jenkins/agent"
  nodeSelector:
    kubernetes.io/os: "linux"
  restartPolicy: "Never"
  volumes:
  - name: "volume-0"
    persistentVolumeClaim:
      claimName: "tools-claim-jiro-leshan"
      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-qs3b5 in /home/jenkins/agent/workspace/leshan-test
[Pipeline] {
[Pipeline] withEnv
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 30 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Declarative: Tool Install)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] }
[Pipeline] // stage
[Pipeline] withEnv
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Build)
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] tool
[Pipeline] envVarsForTool
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
+ echo /opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/home/jenkins/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/home/jenkins/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[Pipeline] sh
+ curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh
+ sh -s -- -b /home/jenkins/bin v0.48.1
aquasecurity/trivy info checking GitHub for tag 'v0.48.1'
aquasecurity/trivy info found version: 0.48.1 for v0.48.1/Linux/64bit
aquasecurity/trivy info installed /home/jenkins/bin/trivy
[Pipeline] sh
+ ls /home/jenkins/bin
trivy
[Pipeline] sh
+ echo /opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/home/jenkins/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/opt/tools/java/temurin/jdk-11/latest/bin:/opt/tools/apache-maven/latest/bin:/home/jenkins/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[Pipeline] git
The recommended git tool is: git
using credential github-bot-ssh
Cloning the remote Git repository
Cloning repository git@github.com:eclipse-leshan/leshan.git
 > git init /home/jenkins/agent/workspace/leshan-test # timeout=10
Fetching upstream changes from git@github.com:eclipse-leshan/leshan.git
 > git --version # timeout=10
 > git --version # 'git version 2.20.1'
using GIT_SSH to set credentials GitHub bot (SSH)
[INFO] Currently running in a labeled security context
 > /usr/bin/chcon --type=ssh_home_t /home/jenkins/agent/workspace/leshan-test@tmp/jenkins-gitclient-ssh422886133250907674.key
Verifying host key using manually-configured host key entries
 > git fetch --tags --force --progress -- git@github.com:eclipse-leshan/leshan.git +refs/heads/*:refs/remotes/origin/* # timeout=10
Avoid second fetch
Checking out Revision 3b63acb02eee3fdb56de5d6a0ef60628a26e1c50 (refs/remotes/origin/trivy2)
Commit message: "try to launch trivy on jenkins"
First time build. Skipping changelog.
 > git config remote.origin.url git@github.com:eclipse-leshan/leshan.git # timeout=10
 > git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > git rev-parse refs/remotes/origin/trivy2^{commit} # timeout=10
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 3b63acb02eee3fdb56de5d6a0ef60628a26e1c50 # timeout=10
 > git branch -a -v --no-abbrev # timeout=10
 > git checkout -b trivy2 3b63acb02eee3fdb56de5d6a0ef60628a26e1c50 # timeout=10
 > git rev-list --no-walk 77787252869ebc05e506e20f90799af6fe7ca5d6 # timeout=10
[Pipeline] sh
+ trivy -f table --scanners vuln fs .--include-dev-deps
2024-01-04T14:22:10.341Z	INFO	Need to update DB
2024-01-04T14:22:10.341Z	INFO	DB Repository: ghcr.io/aquasecurity/trivy-db
2024-01-04T14:22:10.341Z	INFO	Downloading DB...
2024-01-04T14:22:12.406Z	INFO	Vulnerability scanning is enabled
2024-01-04T14:22:12.407Z	FATAL	filesystem scan error: scan error: scan failed: failed analysis: walk filesystem: walk error: lstat .--include-dev-deps: no such file or directory
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE