Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-352

"Clean before checkout" is not taken into account by the dev Jenkins jobs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: iOS 1.11, Android 1.8
    • Component/s: Android, iOS

      Description

      Even with the "Clean before checkout" Additional Behavior, both jobs don't seem to actually clean the workspace:
      https://qa.nuxeo.org/jenkins/job/Private/job/Mobile/job/nuxeo-mobile-master-android
      https://qa.nuxeo.org/jenkins/job/Private/job/Mobile/job/nuxeo-mobile-master-ios/

      As we can see in the logs, npm install doesn't do anything thus the old node_modules folder is kept:

      15:22:58 + npm install
      15:23:10 + npm run build-android
      

      --------------------------------------------------------------------------------------------------
      This only happens on Multibranch Pipeline jobs.
      Now using the workaround for https://issues.jenkins-ci.org/browse/JENKINS-37658 described here: https://support.cloudbees.com/hc/en-us/articles/226122247-How-to-Customize-Checkout-for-Pipeline-Multibranch

      -                    checkout scm
      +                    checkout([$class: 'GitSCM',
      +                        branches: [[name: env.BRANCH_NAME]],
      +                        extensions: [[$class: 'CleanBeforeCheckout']],
      +                        userRemoteConfigs: [[url: 'git@github.com:nuxeo/nuxeo-mobile.git']]
      +                    ])
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h