Gradle created a preVerifyRelease task
This commit is contained in:
parent
61586d9559
commit
7b2e93fa17
|
@ -232,6 +232,12 @@ task ciBuild {
|
|||
}
|
||||
|
||||
tasks.release.dependsOn tasks.test, tasks.publishToSonatype
|
||||
|
||||
tasks.preVerifyRelease.dependsOn build
|
||||
tasks.preVerifyRelease.dependsOn generateMetadataFileForPublishedArtifactsPublication
|
||||
tasks.preVerifyRelease.dependsOn generatePomFileForPublishedArtifactsPublication
|
||||
tasks.preVerifyRelease.dependsOn generatePomFileForRelocationPomPublication
|
||||
|
||||
tasks.publishToSonatype.mustRunAfter test
|
||||
|
||||
|
||||
|
|
|
@ -5,3 +5,7 @@ task release {
|
|||
mustRunAfter ':release:releaseChecks'
|
||||
enabled !project.ormVersion.isSnapshot
|
||||
}
|
||||
|
||||
task preVerifyRelease {
|
||||
dependsOn ':release:preVerifyRelease'
|
||||
}
|
||||
|
|
|
@ -15,7 +15,7 @@ First, a list of resources you will need access to in order to perform a release
|
|||
|
||||
== Steps
|
||||
|
||||
1. Perform `./gradlew clean build` locally (after pulling all upstream changes). The Jenkins job does only the release steps, and we need to make sure tests and checkstyle especially are ok
|
||||
1. Perform `./gradlew preVerifyRelease` locally (after pulling all upstream changes). The Jenkins job does only the release steps, and we need to make sure tests and checkstyle especially are ok
|
||||
2. Mark the version as released in Jira
|
||||
3. Close all issues associated with the version as closed. Be sure to remove the version from any issues that are not resolved (e.g. rejected) - the Jira "release notes" mechanism includes all issues with that version as the fix-for regardless of the resolution
|
||||
4. Start the https://ci.hibernate.org/view/ORM/job/hibernate-orm-release/[Jenkins job]. It is a parameterized build - Jenkins will prompt user for needed information:
|
||||
|
|
|
@ -349,6 +349,15 @@ task releaseChecks {
|
|||
description 'Checks and preparation for release'
|
||||
}
|
||||
|
||||
task preVerifyRelease{
|
||||
group 'Release'
|
||||
description 'Pre-verifies a release job execution (Run locally before a CI release)'
|
||||
|
||||
dependsOn clean
|
||||
dependsOn assembleDocumentation
|
||||
}
|
||||
|
||||
|
||||
task changeLogFile {
|
||||
group 'Release'
|
||||
description 'Updates the changelog.txt file based on the change-log report from Jira'
|
||||
|
|
Loading…
Reference in New Issue