Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18899

Child job finishes with "SUCCESS" status even before copy-to-plugin finishes copying files from slave to master

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • copy-to-slave-plugin
    • None
    • Jenkins version - 1.523
      Master OS - Ubuntu 12.04
      Slave OS - Windows 7
      Copy To Slave Plugin - 1.4

      Scenario:

      I have jenkins installed (debian package) as master in Ubuntu, have 2 slaves for 32/64 bit Windows 7. I run some test cases in the slave windows OS' and use this plugin to get back the test case results to master.

      This is a multi configuration job and after child jobs (1 child job each for 2 slaves) are finished I publish combined HTML reports in the parent job.

      Now the problem that I face here is, the child job finishes with "SUCCESS" without waiting for the copy-to-plugin post build action to finish. So the HTML Publisher in the parent job fails as the files are not yet copied to the master.

      Note 1 : - Though the child job finishes, the copy-to-slave plugin continues to work and files are successfully copied to the master.

      Note 2 : - The child job finishes before the post build action only for copy-to-plugin, it waits till the post build actions are finished for other plugins.

          [JENKINS-18899] Child job finishes with "SUCCESS" status even before copy-to-plugin finishes copying files from slave to master

          Vivekanand SV created issue -
          Vivekanand SV made changes -
          Description Original: Scenario:

          I have jenkins installed (debian package) as master in Ubuntu, have 2 slaves for 32/64 bit Windows 7. I run some test cases in the slave windows OS' and use the use this plugin to get back the files to master.

          This is a multi configuration job and after child jobs (1 child job each for 2 slaves) are finished I publish combined HTML reports in the parent job.

          Now the problem that I face here is, the child job finishes with "SUCCESS" without waiting for the copy-to-plugin post build action to finish. So the HTML Publisher in the parent job fails as the files are not yet copied to the master.

          *Note 1* : - Though the child job finishes, the copy-to-slave plugin continues to work and files are successfully copied to the master.

          *Note 2* : - The child job finishes before the post build action only for copy-to-plugin, it waits till the post build actions are finished for other plugins.
          New: Scenario:

          I have jenkins installed (debian package) as master in Ubuntu, have 2 slaves for 32/64 bit Windows 7. I run some test cases in the slave windows OS' and use this plugin to get back the test case results to master.

          This is a multi configuration job and after child jobs (1 child job each for 2 slaves) are finished I publish combined HTML reports in the parent job.

          Now the problem that I face here is, the child job finishes with "SUCCESS" without waiting for the copy-to-plugin post build action to finish. So the HTML Publisher in the parent job fails as the files are not yet copied to the master.

          *Note 1* : - Though the child job finishes, the copy-to-slave plugin continues to work and files are successfully copied to the master.

          *Note 2* : - The child job finishes before the post build action only for copy-to-plugin, it waits till the post build actions are finished for other plugins.
          Vivekanand SV made changes -
          Assignee Original: Daniel Petisme [ danielpetisme ] New: Vivekanand SV [ svvivek ]
          Vivekanand SV made changes -
          Link New: This issue is related to JENKINS-16818 [ JENKINS-16818 ]
          Vivekanand SV made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Vivekanand SV added a comment -

          This commit [ https://github.com/svvivek/copy-to-slave-plugin/commit/9156293cbdc48c241075e1297a2998214fdf75c6 ] will fix that by giving an option to enable or disable this behavior, so that people who want to retain the behavior can do so. Help/Property files related to french language needs to be updated.

          Vivekanand SV added a comment - This commit [ https://github.com/svvivek/copy-to-slave-plugin/commit/9156293cbdc48c241075e1297a2998214fdf75c6 ] will fix that by giving an option to enable or disable this behavior, so that people who want to retain the behavior can do so. Help/Property files related to french language needs to be updated.
          Vivekanand SV made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]

          Code changed in jenkins
          User: Vivekanand S V
          Path:
          src/main/java/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier.java
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.jelly
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.properties
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/help-runInBackground.html
          http://jenkins-ci.org/commit/copy-to-slave-plugin/9156293cbdc48c241075e1297a2998214fdf75c6
          Log:
          Fixes JENKINS-18899 : - Added option to chose whether to run "copying files back to master" in the end or along with the other post build tasks.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vivekanand S V Path: src/main/java/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier.java src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.jelly src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.properties src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/help-runInBackground.html http://jenkins-ci.org/commit/copy-to-slave-plugin/9156293cbdc48c241075e1297a2998214fdf75c6 Log: Fixes JENKINS-18899 : - Added option to chose whether to run "copying files back to master" in the end or along with the other post build tasks.

          Code changed in jenkins
          User: Vivekanand S V
          Path:
          src/main/java/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier.java
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.jelly
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.properties
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/help-runAfterResultFinalised.html
          src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/help-runInBackground.html
          http://jenkins-ci.org/commit/copy-to-slave-plugin/c9f4087afb91aaf7c6d3dfd637cf33ceb95bfeb5
          Log:
          [FIXED JENKINS-18899]

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vivekanand S V Path: src/main/java/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier.java src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.jelly src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/config.properties src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/help-runAfterResultFinalised.html src/main/resources/com/michelin/cio/hudson/plugins/copytoslave/CopyToMasterNotifier/help-runInBackground.html http://jenkins-ci.org/commit/copy-to-slave-plugin/c9f4087afb91aaf7c6d3dfd637cf33ceb95bfeb5 Log: [FIXED JENKINS-18899]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150346 ] New: JNJira + In-Review [ 193480 ]

            svvivek Vivekanand SV
            svvivek Vivekanand SV
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: