Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance robustness of publish.yml related to Antora (#3286)
This proposes three enhacements related to Antora when publishing from the CI: - first, the deploySnapshot, deployMilestone, and deployRelease were not depending on the build-branch-doc job. so far, it worked because the docs generation is faster then the deploySnapshot, deployMilestone, and deployRelease jobs. But for sake of robustness, let's explicitly make deploySnapshot, deployMilestone, and deployRelease depending on the build-branch-doc job. - second, in case some flaky tests are taking place, the cleanup job is currently always executed, meaning that the generated docs zip is then deleted from the workflow run. So this prevents to rerun the deploy jobs, which will fail because the generated docs zip has been deleted by cleanup. To fix this: the cleanup job is now run only if: either the deploySnapshot, tagRelease, or tagMilestone jobs status is successful. If one of these task is successful, it means the deployment has been fully performed, and we can then cleanup the docs zip attached to the workflow run - third, in case either artifactory or sonatype is temporarily unavailable, the docs zip retention days has been increased to three days, allows one to rerun the publish job before at most three days. beyond 3 days, the docs zip will be automatically removed froml the worflow run, in this case, one will need to restart everything.
- Loading branch information