Artifact retention
IBM® Enterprise Application Service for Java® produces artifacts from builds, deployments, and diagnostics. Enterprise Application Service deletes the artifacts after the number of months specified in its artifact retention policy.
Enterprise Application Service artifact retention policy
Built assets, config validation logs, and deployment job logs are deleted after 12 months, unless the artifacts are deployed to the staging or production environment. For details, see the Build and deploy retention section. Artifacts from server dumps and diagnostics traces are deleted after one month. For details, see the Diagnostics retention section.
For the retention policy, the artifact retention durations are 1 month (30 days), 6 months (180 days), and 12 months (365 days = 1 year).
You might need to retain the artifacts for audit or other purposes. To retain artifacts, you can download them before artifact retention durations elapse.
Build and deploy retention
Enterprise Application Service produces artifacts from builds and deployments. The following table states the durations after which Enterprise Application Service deletes artifacts. An artifact that is currently deployed to a staging or production environment is never deleted. After you undeploy an artifact, the clock starts running for the previously deployed artifact and it's deleted after 12 months. Never deployed artifacts such as pull request build or config validation outputs are deleted after 12 months.
| Artifacts | Never deployed or failed | Previously deployed | Currently deployed |
|---|---|---|---|
| Source pull request builds | 12 months | Not applicable | Not applicable |
| Release builds | 12 months | 12 months | Never |
| Config validations | 12 months | Not applicable | Not applicable |
| Deployments | 12 months | 12 months | Never |
The service deletes artifacts after the retention policy duration expires.
If a release build is deployed to the staging or production environment, then the artifacts for that build are currently deployed and never deleted. A release build that is currently deployed has Staging or Production icons on the Release builds page. If a release build does not have Staging or Production icons on the Release builds page, then it is never deployed or previously deployed and its artifacts are deleted after the pertinent duration elapses.
For information about downloading artifacts for the Build, deploy and run your application option, see information about downloading pull request and release build artifacts in Developing and building applications and about downloading config validation and deployment job logs in Deploying applications built from the source repository.
For information about downloading artifacts for the Deploy and run your application option, see information about downloading config validation and deployment job logs in Deploying prebuilt applications.
Diagnostics retention
Enterprise Application Service produces artifacts from server dumps and diagnostics traces. The server dump operation generates a dump compressed (ZIP) file and the diagnostics trace operation generates a trace log. You can download the generated artifacts. An artifact is retained for one month after completion of a server dump or trace operation. After the one-month duration elapses, the artifact is deleted.
For information about downloading diagnostics artifacts, see Getting server dumps and Running diagnostics trace.
Future: The service UI warns you of pending expirations so that you can download artifacts for longer-term storage.