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('\$') + } + } + } + } + } + } +}