The strange thing is that this part of the log that appears under the other
stage:
---
[2019-04-16T09:06:31.211Z] > git show-ref --tags -d # timeout=10
[2019-04-16T09:06:31.224Z] > git config core.sparsecheckout # timeout=10
[2019-04-16T09:06:31.229Z] > git checkout -f
bf7221352765115631b4326fa6b0603ff0f19637
[2019-04-16T09:06:31.244Z] > git branch -a -v --no-abbrev # timeout=10
[2019-04-16T09:06:31.249Z] > git checkout -b feature/pr1
bf7221352765115631b4326fa6b0603ff0f19637
[2019-04-16T09:06:31.272Z] > git rev-list --no-walk
bf7221352765115631b4326fa6b0603ff0f19637 # timeout=10
---
Doesn't seem to even be present if I replace the call to "myPlugin()" with
"sh(ls)" for example in (BeginCheckRun) stage.
What could cause the git plugin to have extra output and to have outside of
its stage, in the next stage.
On Tuesday, April 16, 2019 at 12:16:03 PM UTC+3, Daniel Anechitoaie wrote:
>
> For some reason the console output seems to be all mixed. Like the output
> from on step is present in other step.
> Notice how "(BeginCheckRun)" stage started, yet the output from (Git)
> stage is not finished, and part of the (Git) stage is also printed after
> (BeginCheckRun) stage started.
> Any idea what's going on?
>
> myPlugin() is a Step plugin I did that "extends
> SynchronousNonBlockingStepExecution"
> If I don't call myPlugin() in my Jenkinsfile then the output is ok.
> Any idea what could cause this to happen?
>
> Here's my Jenkinsfile
> ---
> node {
> stage('Cleanup') {
> cleanWs()
> }
>
> stage('Git') {
> dir('scm') {
> git(...)
> }
> }
>
> stage('BeginCheckRun') {
> dir('scm') {
> myPlugin()
> }
> }
> }
>
> ---
>
>
> And the console output:
> ---
> [2019-04-16T09:06:27.056Z] Started by user Daniel Anechitoaie
> [2019-04-16T09:06:27.057Z] Running in Durability level:
> PERFORMANCE_OPTIMIZED
> [2019-04-16T09:06:27.381Z] [Pipeline] Start of Pipeline
> [2019-04-16T09:06:27.414Z] [Pipeline] node
> [2019-04-16T09:06:27.432Z] Running on wrkr1 in
> /var/lib/jenkins/workspace/some/test
> [2019-04-16T09:06:27.432Z] [Pipeline] {
> [2019-04-16T09:06:27.449Z] [Pipeline] stage
> [2019-04-16T09:06:27.452Z] [Pipeline] { (Cleanup)
> [2019-04-16T09:06:27.552Z] [Pipeline] cleanWs
> [2019-04-16T09:06:27.564Z] [WS-CLEANUP] Deleting project workspace...
> [2019-04-16T09:06:27.564Z] [WS-CLEANUP] Deferred wipeout is used...
> [2019-04-16T09:06:27.912Z] [WS-CLEANUP] done
> [2019-04-16T09:06:27.914Z] [Pipeline] }
> [2019-04-16T09:06:27.918Z] [Pipeline] // stage
> [2019-04-16T09:06:27.933Z] [Pipeline] stage
> [2019-04-16T09:06:27.935Z] [Pipeline] { (Git)
> [2019-04-16T09:06:27.945Z] [Pipeline] dir
> [2019-04-16T09:06:27.946Z] Running in
> /var/lib/jenkins/workspace/some/test/scm
> [2019-04-16T09:06:27.946Z] [Pipeline] {
> [2019-04-16T09:06:27.973Z] [Pipeline] git
> [2019-04-16T09:06:27.996Z] using credential
> 86595008-12db-46b4-b1a3-e79de2f0e2af
> [2019-04-16T09:06:28.289Z] Cloning the remote Git repository
> [2019-04-16T09:06:28.292Z] Cloning repository [email protected]:some/test.git
> [2019-04-16T09:06:28.292Z] > git init
> /var/lib/jenkins/workspace/some/test/scm # timeout=10
> [2019-04-16T09:06:28.718Z] Fetching upstream changes from
> [email protected]:some/test.git
> [2019-04-16T09:06:28.719Z] > git --version # timeout=10
> [2019-04-16T09:06:28.724Z] using GIT_SSH to set credentials some_test
> [2019-04-16T09:06:28.726Z] > git fetch --tags --progress
> [email protected]:some/test.git +refs/heads/*:refs/remotes/origin/*
> [2019-04-16T09:06:30.130Z] > git config remote.origin.url
> [email protected]:some/test.git # timeout=10
> [2019-04-16T09:06:30.135Z] > git config --add remote.origin.fetch
> +refs/heads/*:refs/remotes/origin/* # timeout=10
> [2019-04-16T09:06:30.142Z] > git config remote.origin.url
> [email protected]:some/test.git # timeout=10
> [2019-04-16T09:06:30.150Z] Fetching upstream changes from
> [email protected]:some/test.git
> [2019-04-16T09:06:30.150Z] using GIT_SSH to set credentials some_test
> [2019-04-16T09:06:30.151Z] > git fetch --tags --progress
> [email protected]:some/test.git +refs/heads/*:refs/remotes/origin/*
> [2019-04-16T09:06:31.222Z] Checking out Revision
> bf7221352765115631b4326fa6b0603ff0f19637 (origin/feature/pr1)
> [2019-04-16T09:06:31.269Z] Commit message: "Update README.md"
> [2019-04-16T09:06:31.300Z] [Pipeline] }
> [2019-04-16T09:06:31.302Z] [Pipeline] // dir
> [2019-04-16T09:06:31.331Z] [Pipeline] }
> [2019-04-16T09:06:31.362Z] [Pipeline] // stage
> [2019-04-16T09:06:31.376Z] [Pipeline] stage
> [2019-04-16T09:06:31.380Z] [Pipeline] { (BeginCheckRun)
> [2019-04-16T09:06:31.485Z] [Pipeline] dir
> [2019-04-16T09:06:31.485Z] Running in
> /var/lib/jenkins/workspace/some/test/scm
> [2019-04-16T09:06:31.486Z] [Pipeline] {
> [2019-04-16T09:06:31.541Z] [Pipeline] myPlugin
> [2019-04-16T09:06:31.208Z] Seen branch in repository origin/feature/pr1
> [2019-04-16T09:06:31.208Z] Seen branch in repository origin/master
> [2019-04-16T09:06:31.208Z] Seen 2 remote branches
> [2019-04-16T09:06:31.211Z] > git show-ref --tags -d # timeout=10
> [2019-04-16T09:06:31.224Z] > git config core.sparsecheckout # timeout=10
> [2019-04-16T09:06:31.229Z] > git checkout -f
> bf7221352765115631b4326fa6b0603ff0f19637
> [2019-04-16T09:06:31.244Z] > git branch -a -v --no-abbrev # timeout=10
> [2019-04-16T09:06:31.249Z] > git checkout -b feature/pr1
> bf7221352765115631b4326fa6b0603ff0f19637
> [2019-04-16T09:06:31.272Z] > git rev-list --no-walk
> bf7221352765115631b4326fa6b0603ff0f19637 # timeout=10
> [2019-04-16T09:06:32.989Z] [Pipeline] }
> [2019-04-16T09:06:32.995Z] [Pipeline] // dir
> [2019-04-16T09:06:33.063Z] [Pipeline] }
> [2019-04-16T09:06:33.089Z] [Pipeline] // stage
> [2019-04-16T09:06:33.127Z] [Pipeline] }
> [2019-04-16T09:06:33.138Z] [Pipeline] // node
> [2019-04-16T09:06:33.165Z] [Pipeline] End of Pipeline
> ---
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/bf4960a7-1a78-44bc-8d27-e77e88b03379%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.