-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
} | ||
} | ||
} |