Trigger Octomind in your Jenkins pipeline via GitHub webhook
Account settings menu icon, 5/2025
Create an API key
.
Create an API key button, 05/2025
Create a new Octomind API key in the settings, 05/2025
Copy the Octomind API key
project settings, 08/2024
copy test target id
.
Copy test target ID
Settings
, go to Webhooks
and click Add webhook.
Adding webhook to repository, screenshot 07/2023
<your-jenkins-url>/github-webhook/
and select application/json
for Content type.
Select triggers that best suite your need.
In general, the push event
is enough, but for this example we also want to trigger Octomind on pull request
.
Configuring webhook, screenshot 07/2023
Pull requests
and Pushes
and after that click on Add webhook
.
Configuring webhook permissions, screenshot 07/2023
Validating webhook, screenshot 07/2023
AUTOMAGICALLY_TOKEN
to your secrets. Navigate to Dashboard -> Manage jenkins -> Credentials -> System -> Global credentials (unrestricted)
and click on Add Credentials
.
For the Kind
you need to select Secret text
. Be careful that your ID
matches the ID
that you call within the Jenkinsfile script. Copy your token value to the Secret
field and click Create
.
Configuring AUTOMAGICALLY_TOKEN, Jenkins 2.401.2
Dashboard -> Manage jenkins -> Security
and for Markup Formatter
select Safe HTML
and then save.
Enabling safe parsing of HTML, Jenkins 2.401.2
+ New Item
Creating new Pipeline, Jenkins 2.401.2
Creating new Pipeline, Jenkins 2.401.2
GitHub project
and paste an url to your repo so you will have a button on your dashboard to take you to your repo.
You need to check GitHub hook trigger for GITScm polling
so our previously created hook can trigger our pipeline.
Configuring triggers from GitHub webhook, Jenkins 2.401.2
Definition
select Pipeline script from SCM
.
For SCM
you select Git
After adding your Repository URL
, you’ll need to provide credentials if it’s a private repository.
Loading Jenkinsfile from GitHub repository, Jenkins 2.401.2
*/*
will trigger the pipeline on pushing to any branch.
If you want to trigger pipeline only on specific branch changes, e.g. main, put in */main
.
The last field asks you to set the path and name to Jenkinsfile, but it’s on the top level in our repository and it’s named Jenkinsfile, so no changes are required.
Lastly, click on Save
.
Loading Jenkinsfile from GitHub repository, Jenkins 2.401.2