Skip to content
Snippets Groups Projects
Commit 161c85a3 authored by Nicholas Blair's avatar Nicholas Blair
Browse files

docs: describe how to get Jenkins to tag releases

parent 718f28a5
No related branches found
No related tags found
1 merge request!2feat: always populate MANIFEST with project.name and .version
......@@ -61,7 +61,12 @@ cpublish {
If a commit lands on master, and `cpublish.skip` is false, you can have confidence that the gradle `project.version` includes a new value. Running `gradle uploadArchives` to publish a new release will work.
TODO: currently depend on Jenkins to tag the release, provide a task to do this from Gradle
After the `uploadArchives` task completes, you can have Jenkins tag the release and push the tag to the repository.
1. In your Jenkins build job, in the **Build** section, add a `Execute system Groovy script` step, and have it run a copy of the provided [artifact-version.groovy](artifact-version.groovy).
2. In the same job, in the **Post-build actions** section, add a `Git Publisher` step, and configure it:
![Git Publisher configuration screenshot](git-publisher-config.png)
## Developing the plugin
......
git-publisher-config.png

86.2 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment