diff --git a/.release/.gitignore b/.release/.gitignore new file mode 100644 index 0000000..cdd9a17 --- /dev/null +++ b/.release/.gitignore @@ -0,0 +1,3 @@ +# The folder into which we checkout our release scripts into +* +!.gitignore \ No newline at end of file diff --git a/ci/release/Jenkinsfile b/ci/release/Jenkinsfile index 70e1f89..705b31e 100644 --- a/ci/release/Jenkinsfile +++ b/ci/release/Jenkinsfile @@ -63,10 +63,11 @@ pipeline { string(credentialsId: 'Hibernate-CI.github.com', variable: 'JRELEASER_GITHUB_TOKEN')]) { sshagent(['ed25519.Hibernate-CI.github.com']) { sh 'cat $HOME/.ssh/config' - sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git' - env.RELEASE_GPG_HOMEDIR = env.WORKSPACE_TMP + '/.gpg' + dir('.release/scripts') { + sh 'git clone https://github.com/hibernate/hibernate-release-scripts.git .' + } sh """ - bash -xe hibernate-release-scripts/release.sh ${params.RELEASE_DRY_RUN ? '-d' : ''} \ + bash -xe .release/scripts/release.sh -j ${params.RELEASE_DRY_RUN ? '-d' : ''} \ models ${releaseVersion.toString()} ${developmentVersion.toString()} """ } diff --git a/jreleaser.yml b/jreleaser.yml deleted file mode 100644 index 7286da1..0000000 --- a/jreleaser.yml +++ /dev/null @@ -1,39 +0,0 @@ -project: - languages: - java: - groupId: org.hibernate.models - -release: - github: - skipTag: true - skipRelease: true - tagName: '{{projectVersion}}' - -# File signing is always active -signing: - mode: COMMAND - active: RELEASE - armored: true - -# Deploy JARs and POMs to Maven Central -deploy: - maven: - nexus2: - maven-central: - active: RELEASE - url: https://oss.sonatype.org/service/local - snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots/ - closeRepository: true - stagingRepositories: - - build/staging-deploy/maven - mavenCentral: - maven-central: - # TODO: Change to RELEASE once switching to Maven-Central: - active: NEVER - url: https://central.sonatype.com/api/v1/publisher - snapshotSupported: false - applyMavenCentralRules: true - stagingRepositories: - - build/staging-deploy/maven - # Deployment identifier used for publication. - # deploymentId: dd9991b0-18a7-41e7-b1fe-37b8ea936f85