Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2205

Delete folders leaked by the Workspace Cleanup Jenkins plugin

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration

      Description

      current versions: Jenkins 1.651.24.1, ws cleanup plugin 0.34

      JENKINS-24824 fix is included: Do not leak temporary directories that plugin failed to clean

      https://qa2.nuxeo.org/jenkins/administrativeMonitor/AsyncResourceDisposer/ lists two failures for:

      Workspace Docker-slave-a9f0b45e5fb3-qa-ovh02.nuxeo.com:/opt/jenkins/workspace/8.10/packages_marketplace-duoweb-authentication-1.4_8.10_ws-cleanup_1518777846447
      Workspace Docker-slave-6d3c700018e6-qa-ovh02.nuxeo.com:/opt/jenkins/workspace/9.10/packages_marketplace-diff-1.8_9.10_ws-cleanup_1518777863663
      
      root@qa-ovh02:~# find /opt/jenkins/workspace*/ -name '*ws-cleanup*' -type d -prune 
      /opt/jenkins/workspace/8.10/packages_marketplace-duoweb-authentication-1.4_8.10_ws-cleanup_1518777846447
      /opt/jenkins/workspace/9.10/packages_marketplace-diff-1.8_9.10_ws-cleanup_1518777863663
      /opt/jenkins/workspace/9.10/packages_marketplace-platform-explorer-1.7_9.10_ws-cleanup_1518777703875
      /opt/jenkins/workspace/9.10/packages_marketplace-csv-1.6_9.10_ws-cleanup_1518777691777
      /opt/jenkins/workspace/9.10/packages_marketplace-saml2-login-1.3_9.10_ws-cleanup_1518778743794
      /opt/jenkins/workspace/9.10/packages_marketplace-api-playground-1.2_9.10_ws-cleanup_1518777143941
      /opt/jenkins/workspace/9.10/packages_marketplace-media-publishing-1.3_9.10_ws-cleanup_1518778799182
      /opt/jenkins/workspace/9.10/packages_nuxeo-marketplace-sample-2.4_9.10_ws-cleanup_1518778106025
      /opt/jenkins/workspace/9.10/packages_marketplace-importer-1.8_9.10_ws-cleanup_1518778020957
      

      Add the cleanup to the cron script and consider executing:

      
      curl -s http://${JENKINS_URL}/administrativeMonitor/AsyncResourceDisposer/ -u${UTILITY_USER}:${UTILITY_PW} | tr '"' '\n' | grep 'stop-tracking' | cut -d '-' -f 3 | sort -n | while read ASYNC_THREAD; do curl http://${JENKINS_URL}/administrativeMonitor/AsyncResourceDisposer/stopTracking -u${UTILITY_USER}:${UTILITY_PW} -X POST --data "id=${ASYNC_THREAD}"; done

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: