...
This document aims to help the customer configure their Jenkins jobs to archive the proper number and age of reports and balance these considerations to match their specific business needs.
Step-by-step guide
For jobs that are set up in Jenkins
- Configure the job to handle archives correctly
- Open the configuration of your Jenkins job by clicking on the job and then clicking the "Configure" buttonĀ
- In the General section select the checkbox next to "Discard old builds"
- This will expand a section where you can provide additional configuration
- "Strategy" should be set to "Log Rotation"
- Enter the number of days to keep old builds - Builds older than this number of days will be overwritten
- Enter the maximum number of builds you wish to keep - If there are already this many builds stored, the oldest will be overwritten by the current build
- "Days to keep artifacts" and "Max # of builds to keep with artifacts" do the same as e and f above, but for artifacts specifically
- Archive the artifacts after the build:
- In the "Post-build Actions" section, select "Add post-build action" > "Archive the artifacts"
- In "Files to archive" enter the stringĀ
**/daticaldb.log, **/Reports/**, **/Logs/**, **/Snapshots/**
- This tells Jenkins to keep all of the files called daticaldb.log as well as the contents of the /Reports, /Logs and /Snapshots directories
- Click "Advanced" for optional configurations
- Click the Save button
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...