From 91745288a449eec13d5448a6aaa1e50ab0768017 Mon Sep 17 00:00:00 2001 From: Rustam Tagaev Date: Tue, 4 Jun 2024 12:29:56 +0300 Subject: [PATCH] [DO-533] add automation for Eisen (!27) Reviewed-on: https://git.avroid.tech/DevOps/jenkins-pipelines/pulls/27 Reviewed-by: Denis Patrakeev Co-authored-by: Rustam Tagaev Co-committed-by: Rustam Tagaev --- jobs-dsl/folders/Automation.groovy | 8 +++++ .../jobs/Automation/Eisen/notification.groovy | 36 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 jobs-dsl/folders/Automation.groovy create mode 100644 jobs-dsl/jobs/Automation/Eisen/notification.groovy diff --git a/jobs-dsl/folders/Automation.groovy b/jobs-dsl/folders/Automation.groovy new file mode 100644 index 0000000..53884d8 --- /dev/null +++ b/jobs-dsl/folders/Automation.groovy @@ -0,0 +1,8 @@ +folder('Automation') { + displayName('Automation') + description('Automation') +} + +folder('Automation/Eisen') { + description('Automation for Eisen team') +} diff --git a/jobs-dsl/jobs/Automation/Eisen/notification.groovy b/jobs-dsl/jobs/Automation/Eisen/notification.groovy new file mode 100644 index 0000000..e7fe452 --- /dev/null +++ b/jobs-dsl/jobs/Automation/Eisen/notification.groovy @@ -0,0 +1,36 @@ +pipelineJob('Automation/Eisen/notification') { + definition { + cpsScm { + scm { + git { + remote { + url("${JENKINS_GIT_REPOSITORY_URL}/Eisen/OS.git") + credentials("${JENKINS_GIT_CREDENTIALS_HTTP}") + } + branch('master') + } + } + scriptPath('Notifications') + } + } + + properties { + pipelineTriggers { + triggers { + GenericTrigger { + allowSeveralTriggersPerBuild(false) + token('Automation/Eisen/notification') + genericVariables { + genericVariable{ + expressionType('JSONPath') + regexpFilterText('') + regexpFilterExpression('') + key('jsonEvent') + value('\$') + } + } + } + } + } + } +}