You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here the version numbers will look like `4.0.0-123.vabcdef456789` or `4.0.0-999999-SNAPSHOT`, respectively.
343
-
When you pick up a new third-party component like `4.0.1`, your version numbers will match;
344
-
to refer to the third-party component, just use
345
-
346
-
```xml
347
-
<version>${revision}</version>
348
-
```
349
-
350
-
Since inadvertently running MRP on such a project would result in a mess,
351
-
it is best to explicitly prevent that.
352
-
This is done automatically by the plugin and general component parent POMs
353
-
when you define the `changelist.format` property.
354
-
355
-
#### Automatic deployment
356
-
357
-
If you have configured `changelist.format` as above,
358
-
using [JEP-229](https://jenkins.io/jep/229) you can then set up automatic publishing of artifacts.
359
-
360
-
First, file a patch to your component’s entry(ies) in [RPU](https://github.com/jenkins-infra/repository-permissions-updater/tree/master/permissions) to add
361
-
362
-
```yaml
363
-
cd:
364
-
enabled: true
365
-
```
366
-
367
-
Once that has been merged, start checking `https://github.com/jenkinsci/your-plugin/settings/secrets/actions`
368
-
and you should soon see `MAVEN_TOKEN` and `MAVEN_USERNAME` appear under **Repository secrets**.
369
-
370
-
Next, if you already have Release Drafter configured,
371
-
remove any `tag-template` override in `.github/release-drafter.yml`,
372
-
and delete `.github/workflows/release-drafter.yml` if using GitHub Actions (or remove the app from the repo otherwise).
373
-
If you have not yet configured Release Drafter, just create `.github/release-drafter.yml` containing only
374
-
375
-
```yaml
376
-
_extends: .github
377
-
```
378
-
379
-
If you have a `.github/dependabot.yml`, it is a good idea to add
380
-
381
-
```yaml
382
-
- package-ecosystem: github-actions
383
-
directory: /
384
-
schedule:
385
-
interval: daily
386
-
```
387
-
388
-
Finally create `.github/workflows/cd.yaml` as a copy of [this template](https://github.com/jenkinsci/.github/blob/master/workflow-templates/cd.yaml).
389
-
390
-
Now whenever Jenkins reports a successful build of your default branch,
391
-
and at least one pull request had a label indicating it was of interest to users (e.g. `enhancement` rather than `chore`),
392
-
your component will be released to Artifactory and release notes published in GitHub.
393
-
You do not need any special credentials or local checkout;
394
-
just merge pull requests with suitable titles and [labels](https://github.com/jenkinsci/.github/blob/7baf6188c5dbe8f872bd7f4e13e1aaeee0b2e279/.github/release-drafter.yml#L9-L49).
395
-
396
-
You can also trigger a deployment explicitly, if the current commit has a passing check from Jenkins.
397
-
Visit `https://github.com/jenkinsci/your-plugin/actions?query=workflow%3Acd` and click **Run workflow**.
398
-
If you prefer to only deploy explicitly, not on every push, just comment out the `check_run` section above.
399
-
400
-
(Do not be alarmed to see numerous failed `cd` workflows besides the passing ones that actually deployed:
401
-
every check posted other than the top-level `Jenkins` check triggers a workflow which should quickly fail.)
402
-
403
-
As a fallback, you can also release manually if you have
0 commit comments