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

Check discard strategy of jobs

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Continuous Integration
    • Tags:
    • Sprint:
      DevOps-21, DevOps-22

      Description

      Disk space is limited. So the jobs must follow some mandatory rules. Those rules need to be automatically checked.

      "Discard Old Builds" is mandatory.

      • Strategy: Log Rotation
      • Days to keep builds: mandatory, 60 recommended
      • Max # of builds to keep: mandatory, 60 recommended
      • Days to keep artifacts: optional
      • Max # of builds to keep with artifacts: mandatory, 1 recommended

      Create a script to browse and check all the jobs. It can be a job itself or a Groovy script or a combination of various tools.
      See https://qa.nuxeo.org/jenkins/scriptler/
      A priori, it can be public code. There will be other rules to implement.

      On the first run, fix the jobs.
      Afterwards, send an email to the last relevant people (last committer, last requester, ...), cc to the dev list:

      Hello,

      The following job configuration not correct:

      • <CULPRIT JOB URL>

      It is missing the following mandatory configuration:

      • "Discard Old Builds" is mandatory.
        • Strategy: Log Rotation
        • Days to keep builds: mandatory, 60 recommended
        • Max # of builds to keep: mandatory, 60 recommended
        • Days to keep artifacts: optional
        • Max # of builds to keep with artifacts: mandatory, 1 recommended

      Thanks,

      See documentation at:
      https://doc.nuxeo.com/corg/jenkins-job-configuration/
      https://nuxeowiki.atlassian.net/wiki/spaces/NIG/pages/2621874/Job+Configuration

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: