Skip to content

a simple plugin to create downstream pull requests as part of your release pipeline

License

Notifications You must be signed in to change notification settings

jenkins-x-plugins/jx-updatebot

Repository files navigation

jx updatebot

Documentation Go Report Card Releases LICENSE Slack Status

jx-updatebot is a small command line tool for generating downstream Pull Requests

Getting Started

Download the jx-updatebot binary for your operating system and add it to your $PATH.

Or you can use jx updatebot directly in the Jenkins X 3.x CLI

Configuration

The jx updatebot pr command looks in for the .jx/updatebot.yaml file to find the repositories to modify along with the list of change rules to make.

You can see the configuration documentation here for how to format your .jx/updatebot.yaml file.

Examples

Here are some example updatebot configurations:

Using updatebot in Tekton

You can see an example of invoking the Updatebot step inside a Tekton pipeline. This reuses the Jenkins X Pipeline as Code GitOps approach

e.g. check out the final step in this Task:

        steps:
        - image: uses:jenkins-x/jx3-pipeline-catalog/tasks/git-clone/git-clone.yaml@versionStream
        - name: next-version
        - name: jx-variables
        - name: build-make-build
        - name: promote-changelog
        - image: uses:jenkins-x/jx3-pipeline-catalog/tasks/updatebot/release.yaml@versionStream

If you are not using Jenkins X but are using Tekton you could copy/paste this Task step

Commands

See the jx-updatebot command reference