Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: set git user to be able to use git init #21576

Closed
wants to merge 2 commits into from

Conversation

kuisathaverat
Copy link
Contributor

What does this PR do?

it configures the git user globally to be able to use git init command

Why is it important?

The generators module do something with git and it is falling

[2020-10-06T11:50:42.905Z] + make -C generator/_templates/beat test
[2020-10-06T11:50:42.905Z] rm -fr /var/lib/jenkins/workspace/Beats_beats_master/src/beatpath/testbeat
[2020-10-06T11:50:42.905Z] mkdir -p /var/lib/jenkins/workspace/Beats_beats_master/src/beatpath/testbeat
[2020-10-06T11:50:42.905Z] cd /var/lib/jenkins/workspace/Beats_beats_master/src/github.com/elastic/beats/ ; \

...

[2020-10-06T11:55:02.344Z] go: downloading github.com/prometheus/procfs v0.2.0
[2020-10-06T11:55:02.824Z] go: downloading howett.net/plist v0.0.0-20200419221736-3b63eb3a43b5
[2020-10-06T11:56:59.868Z] Generated fields.yml for testbeat to /private/var/lib/jenkins/workspace/Beats_beats_master/src/beatpath/testbeat/fields.yml
[2020-10-06T11:57:08.663Z] 
[2020-10-06T11:57:08.663Z] *** Please tell me who you are.
[2020-10-06T11:57:08.663Z] 
[2020-10-06T11:57:08.663Z] Run
[2020-10-06T11:57:08.663Z] 
[2020-10-06T11:57:08.663Z]   git config --global user.email "you@example.com"
[2020-10-06T11:57:08.663Z]   git config --global user.name "Your Name"
[2020-10-06T11:57:08.663Z] 
[2020-10-06T11:57:08.663Z] to set your account's default identity.
[2020-10-06T11:57:08.663Z] Omit --global to set the identity only in this repository.
[2020-10-06T11:57:08.663Z] 
[2020-10-06T11:57:08.663Z] fatal: unable to auto-detect email address (got 'jenkins@worker-c07ll940dwyl.(none)')
[2020-10-06T11:57:08.663Z] Error: running "git commit -q -m Initial commit, Add generated files" failed with exit code 128
[2020-10-06T11:57:08.663Z] make: *** [prepare-test] Error 128
script returned exit code 2

@kuisathaverat kuisathaverat added bug automation ci Team:Automation Label for the Observability productivity team labels Oct 6, 2020
@kuisathaverat kuisathaverat requested a review from a team as a code owner October 6, 2020 14:51
@kuisathaverat kuisathaverat self-assigned this Oct 6, 2020
@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Oct 6, 2020
Jenkinsfile Outdated Show resolved Hide resolved
Jenkinsfile Outdated Show resolved Hide resolved
@elasticmachine
Copy link
Collaborator

❕ Build Aborted

There is a new build on-going so the previous on-going builds have been aborted.

Pipeline View Test View Changes Artifacts

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21576 opened]

  • Reason: Aborted from #2

  • Start Time: 2020-10-06T14:51:47.118+0000

  • Duration: 6 min 59 sec

  • Commit: a2e8b00

Steps errors 2

Expand to view the steps failures

  • Name: Extract

    • Description: tar -xpf source.tgz

    • Duration: 0 min 4 sec

    • Start Time: 2020-10-06T14:57:41.145+0000

    • log

  • Name: Error signal

    • Description: untar: step failed with error script returned exit code 2

    • Duration: 0 min 0 sec

    • Start Time: 2020-10-06T14:57:44.826+0000

    • log

Log output

Expand to view the last 100 lines of log output

[2020-10-06T14:57:23.117Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21576-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21576/source.tgz
[2020-10-06T14:57:30.621Z] Stage "Build&Test" skipped due to earlier failure(s)
[2020-10-06T14:57:30.828Z] [INFO] unstashV2: JOB_GCS_BUCKET is set. bucket param got precedency instead.
[2020-10-06T14:57:30.855Z] [INFO] unstashV2: JOB_GCS_CREDENTIALS is set. credentialsId param got precedency instead.
[2020-10-06T14:57:30.992Z] [Google Cloud Storage Plugin] Found 1 files to download from pattern: gs://beats-ci-temp/Beats/beats/PR-21576-1/source/source.tgz
[2020-10-06T14:57:31.375Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21576-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21576/source.tgz
[2020-10-06T14:57:41.119Z] + tar --version
[2020-10-06T14:57:41.447Z] + tar -xpf source.tgz
[2020-10-06T14:57:44.312Z] Click here to forcibly terminate running steps
[2020-10-06T14:57:44.322Z] [Google Cloud Storage Plugin] Downloading: Beats/beats/PR-21576-1/source/source.tgz to local path: /var/lib/jenkins/workspace/Beats_beats_PR-21576/source.tgz
[2020-10-06T14:57:44.782Z] 
[2020-10-06T14:57:44.782Z] gzip: stdin: unexpected end of file
[2020-10-06T14:57:44.782Z] tar: Unexpected EOF in archive
[2020-10-06T14:57:44.782Z] tar: Unexpected EOF in archive
[2020-10-06T14:57:44.782Z] tar: Error is not recoverable: exiting now
[2020-10-06T14:57:44.821Z] [INFO] source.tgz was not extracted : script returned exit code 2
[2020-10-06T14:57:45.193Z] + rm source.tgz
[2020-10-06T14:57:45.204Z] Error when executing always post condition:
[2020-10-06T14:57:45.204Z] hudson.AbortException: untar: step failed with error script returned exit code 2
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.steps.ErrorStep$Execution.run(ErrorStep.java:63)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.steps.ErrorStep$Execution.run(ErrorStep.java:50)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousStepExecution.start(SynchronousStepExecution.java:38)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:286)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:179)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
[2020-10-06T14:57:45.204Z] 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:48)
[2020-10-06T14:57:45.204Z] 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
[2020-10-06T14:57:45.204Z] 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.sandbox.DefaultInvoker.methodCall(DefaultInvoker.java:20)
[2020-10-06T14:57:45.204Z] 	at untar.call(untar.groovy:36)
[2020-10-06T14:57:45.204Z] 	at unstashV2.extract(unstashV2.groovy:75)
[2020-10-06T14:57:45.204Z] 	at unstashV2.call(unstashV2.groovy:71)
[2020-10-06T14:57:45.204Z] 	at WorkflowScript.run(WorkflowScript:121)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute(ModelInterpreter.groovy:137)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:756)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:395)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode(ModelInterpreter.groovy:393)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:755)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2030)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2015)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.CpsDefaultGroovyMethods.each(CpsDefaultGroovyMethods:2056)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy:745)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.runPostConditions(ModelInterpreter.groovy)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executePostBuild(ModelInterpreter.groovy:723)
[2020-10-06T14:57:45.204Z] 	at ___cps.transform___(Native Method)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
[2020-10-06T14:57:45.204Z] 	at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source)
[2020-10-06T14:57:45.204Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-10-06T14:57:45.204Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:107)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
[2020-10-06T14:57:45.204Z] 	at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source)
[2020-10-06T14:57:45.204Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-10-06T14:57:45.204Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:89)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
[2020-10-06T14:57:45.204Z] 	at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source)
[2020-10-06T14:57:45.204Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-10-06T14:57:45.204Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
[2020-10-06T14:57:45.204Z] 	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
[2020-10-06T14:57:45.204Z] 	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
[2020-10-06T14:57:45.204Z] 	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:185)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:400)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:312)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:276)
[2020-10-06T14:57:45.204Z] 	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
[2020-10-06T14:57:45.205Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-10-06T14:57:45.205Z] 	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:136)
[2020-10-06T14:57:45.205Z] 	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
[2020-10-06T14:57:45.205Z] 	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
[2020-10-06T14:57:45.205Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[2020-10-06T14:57:45.205Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[2020-10-06T14:57:45.205Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[2020-10-06T14:57:45.205Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[2020-10-06T14:57:45.205Z] 	at java.lang.Thread.run(Thread.java:748)
[2020-10-06T14:57:45.205Z] 
[2020-10-06T14:57:45.495Z] Running on Jenkins in /var/lib/jenkins/workspace/Beats_beats_PR-21576
[2020-10-06T14:57:45.699Z] [INFO] getVaultSecret: Getting secrets
[2020-10-06T14:57:45.851Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-06T14:57:46.804Z] + chmod 755 generate-build-data.sh
[2020-10-06T14:57:46.805Z] + ./generate-build-data.sh https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21576/ https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21576/runs/1 ABORTED 359406
[2020-10-06T14:57:46.805Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21576/runs/1/steps/?limit=10000 -o steps-info.json
[2020-10-06T14:57:47.055Z] INFO: curl https://beats-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/Beats/beats/PR-21576/runs/1/tests/?status=FAILED -o tests-errors.json
[2020-10-06T14:57:47.305Z] Retry 1/3 exited 22, retrying in 1 seconds...
[2020-10-06T14:57:48.649Z] Retry 2/3 exited 22, retrying in 2 seconds...
[2020-10-06T14:57:50.540Z] Retry 3/3 exited 22, no more retries left.

@v1v
Copy link
Member

v1v commented Oct 6, 2020

Closed since #21562 is there already :)

@v1v v1v closed this Oct 6, 2020
@kuisathaverat kuisathaverat deleted the set_git_config branch December 24, 2020 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automation bug ci Team:Automation Label for the Observability productivity team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants