Use Jenkins with Automation
この記事では、現在展開している機能について説明します。これらの機能がサイト上で公開される時期は、リリース ノートまたはアトラシアン コミュニティでご確認ください。
The Datadog integration with Automation is only available to Jira Service Management Cloud customers on Premium or Enterprise plans. Find out how to upgrade your plan.
You can connect your Jenkins account with your project to automate the process of managing the code delivery process.
To use these actions, you need to connect the Jenkins app to Atlassian Automation. For most of the automation actions, you’ll get a connection setup message when you select them. Once the connection is established, you can automate actions and set up triggers based on Jenkins events.
はじめる前に
プロジェクトの自動化を管理するには、次のような適切なプロジェクト権限が必要です。
企業管理対象プロジェクト: プロジェクトを管理とプロジェクトを参照の各権限がプロジェクトに必要です。企業管理対象プロジェクトの権限に関する詳細についてご確認ください。
チーム管理対象プロジェクト: プロジェクトの管理者アクセス権が必要です。チーム管理対象プロジェクトの権限に関する詳細についてご確認ください。
グローバル自動化を管理するには、Jira 管理権限が必要です。Jira Cloud のグローバル権限に関する詳細についてご確認ください。
Integrate your automation rule with Jenkins
[自動化] に移動して [ルールを作成] を選択します。
Select the Jenkins action for your rule.
Select Connect to create a connection with Jenkins. Connections allow your automation rules to fetch data from other tools and products.
Enter the required information to create your connection with Jenkins:
Connection name: Enter the name of the Datadog connection.
Username: Enter your Jenkins username.
API token: Enter your API key from Jenkins to connect it with Atlassian Automation.
Domain URL: Enter the base URL for Jenkins.
5. [接続] を選択して接続の作成を完了します。
操作
Get Jenkins system information
You can use this action to retrieve system health, jobs, and status, including key details about your Jenkins instance.
スマート値
{{fetchedJenkinsInfo}}
– Returns the Jenkins system information.
Get Jenkins job details
You can use this action to get details for a Jenkins job, including build history, health, and configuration.
次のフィールドを入力するか、スマート値を使用して選択します。
Job name: Enter the name of the Jenkins job you want to get details for.
JSON filter: Enter a JSON filter to specify which job details to retrieve. For example:
jobs[name,color]
.Detail level: Select the level of detail to include. Higher levels will include more nested data.
スマート値
{{fetchedJenkinsJob}}
– Returns Jenkins job.
Trigger Jenkins build
You can use this action to start a new build for a Jenkins job and queue the job using its default configuration.
Enter the following field or select using smart values:
Job name: Enter the name of the Jenkins job you want to build.
スマート値
{{fetchedJenkinsBuild}}
– Returns Jenkins build.
Trigger Jenkins build with parameters
You can use this action to start a build with custom parameters, allowing you to run a parameterized job with specific values.
次のフィールドを入力するか、スマート値を使用して選択します。
Job name: Enter the name of the Jenkins job you want to build.
Parameter 1: Enter the name of the first parameter.
Parameter 1 value: Enter the value for the first parameter.
Parameter 2: Enter the name of the second parameter.
Parameter 2 value: Enter the value for the second parameter.
Parameter 3: Enter the name of the third parameter.
Parameter 3 value: Enter the value for the third parameter.
More parameters: Add more parameters as needed in JSON format.
スマート値
{{fetchedJenkinsBuild}}
– Returns Jenkins build.
Get Jenkins latest build information
You can use this action to get information about the latest build for a Jenkins job, including status, duration, and results.
次のフィールドを入力するか、スマート値を使用して選択します。
Job name: Enter the name of the Jenkins job you want to check.
JSON filter: Enter a JSON filter to specify which build details to retrieve. For example:
jobs[name,color]
.Detail level: Select the level of detail to include. Higher levels will include more nested data.
スマート値
{{fetchedJenkinsBuild}}
– Returns Jenkins build.
Get Jenkins build queue
You can use this action to get the current Jenkins build queue and check pending builds and system load.
次のフィールドを入力するか、スマート値を使用して選択します。
JSON filter: Enter a JSON filter to specify which queue details to retrieve. For example:
jobs[name,color]
.Detail level: Select the level of detail to include. Higher levels will include more nested data.
スマート値
{{fetchedJenkinsBuild}}
– Returns Jenkins build.
Get Jenkins build information
You can use this action to get details for a specific Jenkins build, including logs, artifacts, and execution details.
次のフィールドを入力するか、スマート値を使用して選択します。
Job name: Enter the name of the Jenkins job.
Build ID: Enter the ID of the build you want to get information for.
JSON filter: Enter a JSON filter to specify which build details to retrieve. For example:
jobs[name,color]
.Detail level: Select the level of detail to include. Higher levels will include more nested data.
スマート値
{{fetchedJenkinsBuild}}
– Returns Jenkins build.
Get Jenkins all jobs
Get a list of all Jenkins jobs with their names and status colors.
次のフィールドを入力するか、スマート値を使用して選択します。
JSON filter: Enter a JSON filter to specify which queue details to retrieve. For example:
jobs[name,color]
.Detail level: Select the level of detail to include. Higher levels will include more nested data.
スマート値
{{fetchedJenkinsJobList}}
– Returns Jenkins job list.
Get Jenkins user details
Get details about a specific Jenkins user including user properties, permissions, and account details.
次のフィールドを入力するか、スマート値を使用して選択します。
Username: Enter the name of the user.
JSON filter: Enter a JSON filter to specify which queue details to retrieve. For example:
jobs[name,color]
.Detail level: Select the level of detail to include. Higher levels will include more nested data.
スマート値
{{fetchedJenkinsUser}}
– Returns Jenkins user details.
この内容はお役に立ちましたか?