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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: copy-to-slave-plugin
    • Labels:
      None
    • Environment:
      Jenkins version - 1.523
      Master OS - Ubuntu 12.04
      Slave OS - Windows 7
      Copy To Slave Plugin - 1.4
    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            svvivek 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.

            Show
            svvivek 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.
            Hide
            scm_issue_link 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.

            Show
            scm_issue_link 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.
            Hide
            scm_issue_link 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]

            Show
            scm_issue_link 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]

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: