Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-29826

[CI] Fix Aspera Release Job

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: ADDONS_10.10, ADDONS_11.1
    • Fix Version/s: ADDONS_10.10, ADDONS_11.1
    • Component/s: Aspera Connector
    • Environment:
      Jenkins X
    • Tags:
    • Impact type:
      Configuration Change
    • Sprint:
      nxApps 2020 Cycle 11
    • Story Points:
      1

      Description

      We are not able to test all the code in DRY_RUN mode, but if we have a deep look on this part we can say :

      code

      if (params.dryRun && params.dryRun != '') {
        env.DRY_RUN_RELEASE = params.dryRun
        if (env.DRY_RUN_RELEASE == 'true') {
        echo '''
          ----------------------------------------
          Update Slack Channel
          ----------------------------------------
        '''
          env.SLACK_CHANNEL = 'infra-napps'
        } else {
          env.SLACK_CHANNEL = 'pr-aspera'
        }
      }
      

      we will never enter on the 'else' statement.
      that's why it will be better to rewrite this part

      if (params.dryRun && params.dryRun != '') {
        env.DRY_RUN_RELEASE = params.dryRun
        if (env.DRY_RUN_RELEASE == 'true') {
        echo '''
          ----------------------------------------
          Update Slack Channel
          ----------------------------------------
        '''
          env.SLACK_CHANNEL = 'infra-napps'
        }
      } else {
        env.SLACK_CHANNEL = 'pr-aspera'
        env.DRY_RUN_RELEASE = 'false'
      }
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: