Skip to content

Commit

Permalink
Add example groovy pipeline job #34
Browse files Browse the repository at this point in the history
  • Loading branch information
brianherrera authored Oct 30, 2023
2 parents 4efa46f + cc61549 commit 43138ff
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
5 changes: 5 additions & 0 deletions configs/jobs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Config file for Job DSL plugin.
# Add a file entry for each groovy script containing job definitions.
# Recommended: Store files in JENKINS_LOCAL to prevent state data in JENKINS_HOME
jobs:
- file: ${JENKINS_LOCAL}/jobdsl/o3de_example.groovy
48 changes: 48 additions & 0 deletions jobdsl/o3de_example.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
multibranchPipelineJob('O3DE-Example') {
branchSources {
branchSource {
source {
github {
id('O3DE-Example')
configuredByUrl(false)
repoOwner('o3de')
repository('o3de')
repositoryUrl('https://github.com/o3de/o3de.git')
traits {
authorInChangelogTrait()
gitHubBranchDiscovery {
strategyId(3)
}
gitHubPullRequestDiscovery {
strategyId(1)
}
pruneStaleBranchTrait()
pruneStaleTagTrait()
}
}
}
strategy {
namedBranchesDifferent {
defaultProperties {
suppressAutomaticTriggering {
triggeredBranchesRegex('^$')
}
}
}
}
}
}
description('Example pipeline job for O3DE, a full-featured, real-time open source 3D engine.')
displayName('O3DE Example Pipeline')
factory {
workflowBranchProjectFactory {
scriptPath('scripts/build/Jenkins/Jenkinsfile')
}
}
orphanedItemStrategy {
discardOldItems {
daysToKeep(7)
numToKeep(14)
}
}
}

0 comments on commit 43138ff

Please sign in to comment.