johnniang 不知道为什么会提示再度git
Started by user admin
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Agent maven-91lrq is provisioned from template maven
apiVersion: “v1”
kind: “Pod”
metadata:
annotations: {}
labels:
jenkins: “slave”
jenkins/label-digest: “f02c587acd12db3d7b4a28edb5c2eae5f526ce28”
jenkins/label: “maven”
name: “maven-91lrq”
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: “node-role.kubernetes.io/worker”
operator: “In”
values:
- “ci”
weight: 1
containers:
- args:
- “********”
- “maven-91lrq”
command:
- “jenkins-slave”
env:
- name: “JENKINS_SECRET”
value: “********”
- name: “JENKINS_TUNNEL”
value: “ks-jenkins-agent.kubesphere-devops-system:50000”
- name: “JENKINS_AGENT_NAME”
value: “maven-91lrq”
- name: “JENKINS_NAME”
value: “maven-91lrq”
- name: “JENKINS_AGENT_WORKDIR”
value: “/home/jenkins/agent”
- name: “JENKINS_URL”
value: “http://ks-jenkins.kubesphere-devops-system:80/”
image: “jenkins/jnlp-slave:3.27-1”
imagePullPolicy: “IfNotPresent”
name: “jnlp”
resources:
limits:
memory: “1536Mi”
requests:
memory: “400Mi”
cpu: “50m”
tty: false
volumeMounts:
- mountPath: “/root/.sonar/cache”
name: “volume-2”
readOnly: false
- mountPath: “/root/.m2”
name: “volume-1”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-0”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
- command:
- “cat”
image: “kubesphere/builder-maven:v3.1.0”
imagePullPolicy: “IfNotPresent”
name: “maven”
resources:
limits:
ephemeral-storage: “10Gi”
memory: “8192Mi”
cpu: “4000m”
requests:
ephemeral-storage: “1Gi”
memory: “100Mi”
cpu: “100m”
tty: true
volumeMounts:
- mountPath: “/opt/apache-maven-3.5.3/conf/settings.xml”
name: “config-volume”
subPath: “settings.xml”
- mountPath: “/root/.sonar/cache”
name: “volume-2”
readOnly: false
- mountPath: “/root/.m2”
name: “volume-1”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-0”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
workingDir: “/home/jenkins/agent”
nodeSelector: {}
restartPolicy: “Never”
securityContext:
fsGroup: 1000
tolerations:
- effect: “NoSchedule”
key: “node.kubernetes.io/ci”
operator: “Exists”
- effect: “PreferNoSchedule”
key: “node.kubernetes.io/ci”
operator: “Exists”
volumes:
- hostPath:
path: “/var/run/docker.sock”
name: “volume-0”
- hostPath:
path: “/var/data/jenkins_sonar_cache”
name: “volume-2”
- hostPath:
path: “/var/data/jenkins_maven_cache”
name: “volume-1”
- emptyDir:
medium: ""
name: “workspace-volume”
- configMap:
items:
- key: “MavenSetting”
path: “settings.xml”
name: “ks-devops-agent”
name: “config-volume”
Running on maven-91lrq in /home/jenkins/agent/workspace/publiccxh2w/bictl
[Pipeline] {
[Pipeline] stage
[Pipeline] { (checkout scm)
[Pipeline] git
The recommended git tool is: NONE
using credential gitlab
Cloning the remote Git repository
Cloning repository http://10.1.200.15:9980/inside/insidebi.git
git init /home/jenkins/agent/workspace/publiccxh2w/bictl # timeout=10
Fetching upstream changes from http://10.1.200.15:9980/inside/insidebi.git
git –version # timeout=10
git –version # ‘git version 2.11.0’
using GIT_ASKPASS to set credentials
git fetch –tags –progress – http://10.1.200.15:9980/inside/insidebi.git +refs/heads/:refs/remotes/origin/ # timeout=10
Avoid second fetch
Checking out Revision e6d74417d971059adbc071fe0ceb8d535f8754a2 (refs/remotes/origin/master)
git config remote.origin.url http://10.1.200.15:9980/inside/insidebi.git # timeout=10
git config –add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
git rev-parse refs/remotes/origin/master^{commit} # timeout=10
git config core.sparsecheckout # timeout=10
git checkout -f e6d74417d971059adbc071fe0ceb8d535f8754a2 # timeout=10
git branch -a -v –no-abbrev # timeout=10
git checkout -b master e6d74417d971059adbc071fe0ceb8d535f8754a2 # timeout=10
Commit message: “yaml”
git rev-list –no-walk e6d74417d971059adbc071fe0ceb8d535f8754a2 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (mvn)
[Pipeline] container
[Pipeline] {
[Pipeline] sh
- mvn -U clean package -Dmaven.test.skip=true
[INFO] Scanning for projects…
[INFO]
[INFO] —————————< com.ouyada:bi >—————————-
[INFO] Building bi 0.0.1-SNAPSHOT
[INFO] ——————————–[ war ]———————————
[INFO]
[INFO] — maven-clean-plugin:3.0.0:clean (default-clean) @ bi —
[INFO]
[INFO] — maven-resources-plugin:3.0.2:resources (default-resources) @ bi —
[INFO] Using ‘UTF-8’ encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 944 resources
[INFO]
[INFO] — maven-compiler-plugin:3.7.0:compile (default-compile) @ bi —
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 111 source files to /home/jenkins/agent/workspace/publiccxh2w/bictl/target/classes
[WARNING] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/utils/Aes.java:[13,16] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/utils/Aes.java:[82,61] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/utils/Util.java:[268,53] sun.misc.BASE64Encoder is internal proprietary API and may be removed in a future release
[WARNING] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/utils/Util.java:[292,79] sun.misc.BASE64Decoder is internal proprietary API and may be removed in a future release
[INFO] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/utils/WebSecurityConfig.java: Some input files use or override a deprecated API.
[INFO] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/utils/WebSecurityConfig.java: Recompile with -Xlint:deprecation for details.
[INFO] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/controller/IndexController.java: Some input files use unchecked or unsafe operations.
[INFO] /home/jenkins/agent/workspace/publiccxh2w/bictl/src/main/java/com/ouyada/bi/controller/IndexController.java: Recompile with -Xlint:unchecked for details.
[INFO]
[INFO] — maven-resources-plugin:3.0.2:testResources (default-testResources) @ bi —
[INFO] Not copying test resources
[INFO]
[INFO] — maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ bi —
[INFO] Not compiling test sources
[INFO]
[INFO] — maven-surefire-plugin:2.21.0:test (default-test) @ bi —
[INFO] Tests are skipped.
[INFO]
[INFO] — maven-war-plugin:3.1.0:war (default-war) @ bi —
[INFO] Packaging webapp
[INFO] Assembling webapp [bi] in [/home/jenkins/agent/workspace/publiccxh2w/bictl/target/bi-0.0.1-SNAPSHOT]
[INFO] Processing war project
[INFO] Webapp assembled in [900 msecs]
[INFO] Building war: /home/jenkins/agent/workspace/publiccxh2w/bictl/target/bi-0.0.1-SNAPSHOT.war
[INFO]
[INFO] — spring-boot-maven-plugin:2.0.4.RELEASE:repackage (default) @ bi —
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 15.013 s
[INFO] Finished at: 2021-05-07T02:37:00Z
[INFO] ————————————————————————
[Pipeline] sh
- docker build -f Dockerfile-online -t 10.1.200.15/public/bi:v1 .
Sending build context to Docker daemon 230MB
Step ¼ : FROM java:openjdk-8-jre-alpine
—> fdc893b19a14
Step 2/4 : WORKDIR /home
—> Using cache
—> f6609f13cd4a
Step ¾ : COPY target/*.war /home
—> 10690086f773
Step 4/4 : ENTRYPOINT java -jar *.war
—> Running in a49dc46801e0
Removing intermediate container a49dc46801e0
—> 03422c19def8
Successfully built 03422c19def8
Successfully tagged 10.1.200.15/public/bi:v1
[Pipeline] withCredentials
Masking supported pattern matches of $HARBOR_USERNAME or $HARBOR_PASSWORD
[Pipeline] {
[Pipeline] sh
Login Succeeded
[Pipeline] sh
- docker push 10.1.200.15/public/bi:v1
The push refers to repository [10.1.200.15/public/bi]
56b68feeb7e8: Preparing
20dd87a4c2ab: Preparing
78075328e0da: Preparing
9f8566ee5135: Preparing
78075328e0da: Layer already exists
20dd87a4c2ab: Layer already exists
9f8566ee5135: Layer already exists
56b68feeb7e8: Pushed
v1: digest: sha256:7d5e1fba1590427bfa1f3d59732c4f29c809683201298c0b10de8c3ad0821131 size: 1159
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // container
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Artifacts)
[Pipeline] archiveArtifacts
Archiving artifacts
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (deploy)
[Pipeline] node
Agent base-wwc9f is provisioned from template base
—
apiVersion: “v1”
kind: “Pod”
metadata:
annotations: {}
labels:
jenkins: “slave”
jenkins/label-digest: “3618ad4590b5aeeaf5022be929b8ba84d836466c”
jenkins/label: “base”
name: “base-wwc9f”
spec:
affinity:
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- preference:
matchExpressions:
- key: “node-role.kubernetes.io/worker”
operator: “In”
values:
- “ci”
weight: 1
containers:
- args:
- “********”
- “base-wwc9f”
command:
- “jenkins-slave”
env:
- name: “JENKINS_SECRET”
value: “********”
- name: “JENKINS_TUNNEL”
value: “ks-jenkins-agent.kubesphere-devops-system:50000”
- name: “JENKINS_AGENT_NAME”
value: “base-wwc9f”
- name: “JENKINS_NAME”
value: “base-wwc9f”
- name: “JENKINS_AGENT_WORKDIR”
value: “/home/jenkins/agent”
- name: “JENKINS_URL”
value: “http://ks-jenkins.kubesphere-devops-system:80/”
image: “jenkins/jnlp-slave:3.27-1”
imagePullPolicy: “IfNotPresent”
name: “jnlp”
resources:
limits:
memory: “1536Mi”
requests:
memory: “400Mi”
cpu: “50m”
tty: false
volumeMounts:
- mountPath: “/root/.sonar/cache”
name: “volume-1”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-0”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
- command:
- “cat”
image: “kubesphere/builder-base:v3.1.0”
imagePullPolicy: “IfNotPresent”
name: “base”
resources:
limits:
ephemeral-storage: “10Gi”
memory: “8192Mi”
cpu: “4000m”
requests:
ephemeral-storage: “1Gi”
memory: “100Mi”
cpu: “100m”
tty: true
volumeMounts:
- mountPath: “/root/.sonar/cache”
name: “volume-1”
readOnly: false
- mountPath: “/var/run/docker.sock”
name: “volume-0”
readOnly: false
- mountPath: “/home/jenkins/agent”
name: “workspace-volume”
readOnly: false
workingDir: “/home/jenkins/agent”
nodeSelector: {}
restartPolicy: “Never”
securityContext:
fsGroup: 1000
tolerations:
- effect: “NoSchedule”
key: “node.kubernetes.io/ci”
operator: “Exists”
- effect: “PreferNoSchedule”
key: “node.kubernetes.io/ci”
operator: “Exists”
volumes:
- hostPath:
path: “/var/run/docker.sock”
name: “volume-0”
- hostPath:
path: “/var/data/jenkins_sonar_cache”
name: “volume-1”
- emptyDir:
medium: ""
name: “workspace-volume”
Running on base-wwc9f in /home/jenkins/agent/workspace/publiccxh2w/bictl
[Pipeline] {
[Pipeline] withCredentials
Masking supported pattern matches of $null
[Pipeline] {
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
[Pipeline] // node
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.lang.NullPointerException
at hudson.EnvVars.override(EnvVars.java:152)
at org.jenkinsci.plugins.credentialsbinding.impl.BindingStep$Overrider.expand(BindingStep.java:184)
at org.jenkinsci.plugins.workflow.steps.EnvironmentExpander$MergedEnvironmentExpander.expand(EnvironmentExpander.java:112)
at org.jenkinsci.plugins.workflow.steps.EnvironmentExpander.getEffectiveEnvironment(EnvironmentExpander.java:164)
at org.jenkinsci.plugins.workflow.support.DefaultStepContext.get(DefaultStepContext.java:81)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:258)
at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:193)
at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
at sun.reflect.GeneratedMethodAccessor1560.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:163)
at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:157)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:135)
at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
at WorkflowScript.run(WorkflowScript:49)
at cps.transform(Native Method)
at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
at sun.reflect.GeneratedMethodAccessor270.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
at com.cloudbees.groovy.cps.Next.step(Next.java:83)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:136)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Finished: FAILURE
关闭