Skip to content

Commit 0ac953d

Browse files
committed
[RelEng] Rename publishToMaven job to deployToMaven
to better match the Maven terminology.
1 parent ceccb93 commit 0ac953d

File tree

9 files changed

+24
-24
lines changed

9 files changed

+24
-24
lines changed

JenkinsJobs/Builds/build.jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ spec:
316316
}
317317
}
318318
steps {
319-
build job: 'Releng/PublishToMaven', wait: false, parameters: [
319+
build job: 'Releng/deployToMaven', wait: false, parameters: [
320320
string(name: 'sourceRepository', value: "https://download.eclipse.org/eclipse/updates/${RELEASE_VER}-${BUILD_TYPE}-builds/${BUILD_IID}")
321321
]
322322
}

JenkinsJobs/Releng/FOLDER.groovy

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@ folder('Releng') {
22
description('Jobs related to routine releng tasks. Some are periodic, some are "manual" jobs ran only when needed.')
33
}
44

5-
pipelineJob('Releng/PublishToMaven'){
6-
displayName('Publish to Maven')
5+
pipelineJob('Releng/deployToMaven'){
6+
displayName('Deploy to Maven')
77
description('''\
88
<p>
99
This job uses the <a href="https://github.com/eclipse-cbi/p2repo-aggregator">CBI aggregator</a> to produce a Maven-compatible repository
10-
with contents as specified by the <a href="https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/eclipse.platform.releng/publish-to-maven-central/SDK4Mvn.aggr">SDK4Mvn.aggr</a> and
11-
then publishes the artifacts for <code>Eclipse-Platform</code>, <code>JDT</code>, <code>Equinox</code> and <code>PDE</code> from the output:
10+
with contents as specified by the <a href="https://github.com/eclipse-platform/eclipse.platform.releng.aggregator/blob/master/eclipse.platform.releng/deploy-to-maven/SDK4Mvn.aggr">SDK4Mvn.aggr</a> and
11+
then deploys the artifacts for <code>Eclipse-Platform</code>, <code>JDT</code>, <code>Equinox</code> and <code>PDE</code> from the output:
1212
</p>
1313
<ul>
1414
<li>
15-
Snapshots are published to <a href="https://repo.eclipse.org/content/repositories/eclipse-snapshots/">https://repo.eclipse.org/content/repositories/eclipse-snapshots/</a>.
15+
Snapshots are deployed to <a href="https://repo.eclipse.org/content/repositories/eclipse-snapshots/">https://repo.eclipse.org/content/repositories/eclipse-snapshots/</a>.
1616
</li>
1717
<li>
18-
Releases are published to <a href="https://repo1.maven.org/maven2/org/eclipse/">Maven central</a> by publishing to a <a href="https://oss.sonatype.org/#stagingRepositories">staging repository</a>.
18+
Releases are deployed to <a href="https://repo1.maven.org/maven2/org/eclipse/">Maven central</a> by deploying to a <a href="https://oss.sonatype.org/#stagingRepositories">staging repository</a>.
1919
</li>
2020
</ul>
2121
<p>
2222
''')
2323
parameters { // Define parameters in job configuration to make them available even for the very first build after this job was (re)created.
2424
stringParam('sourceRepository', null, '''\
25-
The URL of the source P2 repository to be published.<br>
26-
For a snapshot publication, the 4.x-I-Builds child repository of the specific build should be specified, e.g. 'https://download.eclipse.org/eclipse/updates/4.37-I-builds/I20250710-1800/'<br>
25+
The URL of the source P2 repository to be deployed.<br>
26+
To deploy a snapshot, the 4.x-I-Builds child repository of the specific build should be specified, e.g. 'https://download.eclipse.org/eclipse/updates/4.37-I-builds/I20250710-1800/'<br>
2727
<b>To deploy a <em>Release</em>, the corresponding release repository should be specified</b>, e.g. 'https://download.eclipse.org/eclipse/updates/4.36/R-4.36-202505281830/'<br>
28-
If left blank (not recommended), the latest I-build is published.
28+
If left blank (not recommended), the latest I-build is deployed.
2929
<ul>
3030
<li>
31-
Snapshots are published to <a href="https://repo.eclipse.org/content/repositories/eclipse-snapshots/">https://repo.eclipse.org/content/repositories/eclipse-snapshots/</a>.
31+
Snapshots are deployed to <a href="https://repo.eclipse.org/content/repositories/eclipse-snapshots/">https://repo.eclipse.org/content/repositories/eclipse-snapshots/</a>.
3232
</li>
3333
<li>
34-
Releases are published to <a href="https://repo1.maven.org/maven2/org/eclipse/">Maven central</a> by publishing to a <a href="https://oss.sonatype.org/#stagingRepositories">staging repository</a>.
34+
Releases are deployed to <a href="https://repo1.maven.org/maven2/org/eclipse/">Maven central</a> by deploying to a <a href="https://oss.sonatype.org/#stagingRepositories">staging repository</a>.
3535
</li>
3636
</ul>
3737
''')
@@ -42,7 +42,7 @@ Releases are published to <a href="https://repo1.maven.org/maven2/org/eclipse/">
4242
scm {
4343
github('eclipse-platform/eclipse.platform.releng.aggregator', 'master')
4444
}
45-
scriptPath('JenkinsJobs/Releng/publishToMaven.jenkinsfile')
45+
scriptPath('JenkinsJobs/Releng/deployToMaven.jenkinsfile')
4646
}
4747
}
4848
}

JenkinsJobs/Releng/publishToMaven.jenkinsfile renamed to JenkinsJobs/Releng/deployToMaven.jenkinsfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pipeline {
2626
stage('Aggregate Maven repository') {
2727
steps {
2828
sh '''#!/bin/bash -xe
29-
FILE_SDK_AGGR="${WORKSPACE}/git-repo/eclipse.platform.releng/publish-to-maven-central/SDK4Mvn.aggr"
29+
FILE_SDK_AGGR="${WORKSPACE}/git-repo/eclipse.platform.releng/deploy-to-maven/SDK4Mvn.aggr"
3030

3131
# Set the specified source repository
3232
if [ -n "${sourceRepository}" ]; then
@@ -71,7 +71,7 @@ pipeline {
7171
}
7272
}
7373
stage('Validate repository') {
74-
// Tests that each to-be-published artifact can transitively resolve all its dependencies.
74+
// Tests that each to-be deployed artifact can transitively resolve all its dependencies.
7575
steps {
7676
dir('repo-validation') { // Do the work in a clean folder without a pom.xml
7777
sh '''#!/bin/bash -xe
@@ -83,7 +83,7 @@ pipeline {
8383
}
8484
}
8585
}
86-
stage('Publish artifacts to Maven-Central') {
86+
stage('Deploy artifacts') {
8787
matrix {
8888
axes {
8989
axis { // environment variable is also used by called scripts!
@@ -92,7 +92,7 @@ pipeline {
9292
}
9393
}
9494
stages {
95-
stage('Publish project to Maven'){
95+
stage('Deploy project to Maven'){
9696
environment {
9797
SETTINGS = "/home/jenkins/.m2/settings-deploy-ossrh-${PROJECT == 'platform' ? 'releng': PROJECT}.xml"
9898
// The location of the temporarily file that contains the secret file content
@@ -101,7 +101,7 @@ pipeline {
101101
MAVEN_GPG_PASSPHRASE = credentials("secret-subkeys-${PROJECT == 'platform' ? 'releng': PROJECT}.asc-passphrase")
102102
}
103103
steps {
104-
dir("publish-${PROJECT}"){
104+
dir("deploy-${PROJECT}"){
105105
sh '''#!/bin/sh -xe
106106
# Copy configuration pom into clean directory to stop maven from finding the .mvn folder of this git-repository
107107
cp "${WORKSPACE}/git-repo/eclipse-platform-parent/pom.xml" eclipse-parent-pom.xml

RELEASE.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ The actual steps to release
108108
- Change the DL_TYPE from S to R.
109109
- TAG will be set to R as well, for example `R4_27`
110110
- You can subscribe to [cross-project-issues](https://accounts.eclipse.org/mailing-list/cross-project-issues-dev) to get the notifications on Simrel releases.
111-
* #### **Publish to Maven central**
112-
- Publishing to maven should happen by at least Tuesday before the release since there is up to a 24 hour delay for the maven mirrors.
113-
- Run the [Publish to Maven](https://ci.eclipse.org/releng/job/Releng/job/PublishToMaven/) job in Jenkins with the release build as `sourceRepository`.
111+
* #### **Deploy to Maven central**
112+
- Deploying to maven should happen by at least Tuesday before the release since there is up to a 24 hour delay for the maven mirrors.
113+
- Run the [Deploy to Maven](https://ci.eclipse.org/releng/job/Releng/job/deployToMaven/) job in Jenkins with the release build as `sourceRepository`.
114114
- About a minute after triggering the job, Jenkins will ask for confirmation on the console, if the specified build should really be deployed to Maven-Central staging.
115-
- Once that publish job has completed successfully, log into https://oss.sonatype.org/#stagingRepositories and close the Platform, JDT and PDE repositories.
115+
- Once that deploy-job has completed successfully, log into https://oss.sonatype.org/#stagingRepositories and close the Platform, JDT and PDE repositories.
116116
- If you do not have an account on oss.sonatype.org for performing the rest of the release request one by creating an issue like https://issues.sonatype.org/browse/OSSRH-43870 to get permissions for platform, JDT and PDE projects and tag an existing release engineer to give approval.
117117
* **Contribute to SimRel**
118118
- If SimRel is not updated before the I-builds are cleaned up (specifically the build for RC2/GA) it will break.

RELENG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Adding a job to Jenkins should be as easy as adding a new groovy file to git, bu
2929

3030
* **No dashes in filenames**, it breaks JobDSL. If there was a `-` in the job name I changed it to `_` in the file name.
3131
* **Job Names**
32-
- No spaces, this is just for the good of scripts etc. The job NAME is used in the url, but you can always add a `displayName` field if you want the job to appear with a more natural looking name on the page. See (Releng/PublishToMaven)[JenkinsJobs/Releng/FOLDER.groovy] as an example.
32+
- No spaces, this is just for the good of scripts etc. The job NAME is used in the url, but you can always add a `displayName` field if you want the job to appear with a more natural looking name on the page. See (Releng/deployToMaven)[JenkinsJobs/Releng/FOLDER.groovy] as an example.
3333
- The folder needs to be part of the job name, otherwise Jenkins will just create the job at the dashboard level.
3434
* **job vs pipelineJob**
3535
- Anything that can build on a regular jenkins node or via an available lable uses the (job)[https://jenkinsci.github.io/job-dsl-plugin/#path/job] template.

eclipse.platform.releng/publish-to-maven-central/.project renamed to eclipse.platform.releng/deploy-to-maven/.project

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<projectDescription>
3-
<name>publish-to-maven-central</name>
3+
<name>deploy-to-maven</name>
44
<comment></comment>
55
<projects>
66
</projects>

0 commit comments

Comments
 (0)