DO-63/Waydroid_build (#1)

+ Added jobs-dsl and gitea events
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Co-committed-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
This commit is contained in:
aleksandr.vodyanov
2023-09-25 12:01:22 +00:00
committed by Aleksandr Vodyanov
parent 70e286b008
commit 9046f994f1
9 changed files with 301 additions and 28 deletions

View File

@@ -0,0 +1,4 @@
folder('BBL-Waydroid') {
displayName('BBL-Waydroid')
description("Job for build Waydroid")
}

View File

@@ -0,0 +1,4 @@
folder('gitea-events') {
displayName('gitea-events')
description("Jobs for events' Gitea")
}

View File

@@ -0,0 +1,4 @@
folder('jobs-dsl') {
displayName('jobs-dsl')
description('Folder contains job for describing some DSL items such as Jenkins jobs, folders, views etc.')
}

View File

@@ -0,0 +1,36 @@
pipelineJob('gitea-events/jobs-runner') {
definition {
cpsScm {
scm {
git {
remote {
url("${JENKINS_GIT_REPOSITORY_URL}/DevOps/jenkins-pipelines.git")
credentials("${JENKINS_GIT_CREDENTIALS_HTTP}")
}
branch('master')
}
}
scriptPath('pipelines/gitea-events/jobs-runner.groovy')
}
}
properties {
pipelineTriggers {
triggers {
GenericTrigger {
allowSeveralTriggersPerBuild(false)
token('gitea-events/jobs-runner')
genericVariables {
genericVariable{
expressionType('JSONPath')
regexpFilterText('')
regexpFilterExpression('')
key('jsonEvent')
value('\$')
}
}
}
}
}
}
}

View File

@@ -0,0 +1,29 @@
pipelineJob('jobs-dsl/jobs-dsl') {
definition {
cpsScm {
scm {
git {
remote {
url("${JENKINS_GIT_REPOSITORY_URL}/DevOps/jenkins-pipelines.git")
credentials("${JENKINS_GIT_CREDENTIALS_HTTP}")
}
branch('master')
}
}
scriptPath('pipelines/jobs-dsl/jobs-dsl.groovy')
}
}
properties {
disableConcurrentBuilds()
}
parameters {
string { name('PROJECT_NAME')
defaultValue('devops/jenkins-pipelines')
}
string { name('BRANCH_NAME')
defaultValue('master')
}
}
}

View File

@@ -0,0 +1,15 @@
listView('DevOps') {
description('DevOps service tasks')
recurse()
jobs {
regex(/^jobs-dsl$|^gitea*/)
}
columns {
status()
name()
lastSuccess()
lastFailure()
lastDuration()
buildButton()
}
}