Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fedci-pipelines
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
RamaRao Gajendrula
fedci-pipelines
Commits
794d37ad
Commit
794d37ad
authored
Feb 14, 2020
by
RamaRao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add PR Job to school
parent
8acda611
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
96 additions
and
0 deletions
+96
-0
job_school_GitHub_Pull_Request_Builder.groovy
...-main-build/job_school_GitHub_Pull_Request_Builder.groovy
+61
-0
job_school_main_build.groovy
school-main-build/job_school_main_build.groovy
+1
-0
job_school_pr_build.groovy
school-main-build/job_school_pr_build.groovy
+34
-0
No files found.
school-main-build/job_school_GitHub_Pull_Request_Builder.groovy
0 → 100644
View file @
794d37ad
import
javaposse.jobdsl.dsl.jobs.MultiJob
import
javaposse.jobdsl.dsl.jobs.MultiJob
multiJob
(
'school-GitHub-Pull-Request-Builder'
)
{
concurrentBuild
()
properties
{
githubProjectUrl
(
'https://github.com/gajendrularamarao/school'
)
rebuild
{
autoRebuild
(
false
)
rebuildDisabled
(
false
)
}
}
logRotator
{
numToKeep
(
7
)
}
scm
{
git
{
remote
{
url
(
'https://github.com/gajendrularamarao/school'
)
credentials
(
'github_credential'
)
name
(
'origin'
)
refspec
(
'+refs/pull/*:refs/remotes/origin/pr/* +refs/heads/master:refs/remotes/origin/master'
)
}
branch
(
'${sha1}'
)
}
}
steps
{
phase
(
'Pull_Request'
)
{
phaseJob
(
'school-pr-build'
){
parameters
{
predefinedProp
(
'REVISION'
,
'$ghprbActualCommit'
)
predefinedProp
(
'PrNo'
,
'$ghprbPullId'
)
}
killPhaseCondition
(
'UNSTABLE'
)
abortAllJobs
()
currentJobParameters
()
}
}
}
triggers
{
githubPullRequest
{
permitAll
(
true
)
cron
(
'* * * * *'
)
}
}
//This configure block is used to set the gitHubAuthId field which is not made available through the basic DSL
configure
{
project
->
(
project
/ triggers /
'org.jenkinsci.plugins.ghprb.GhprbTrigger'
/
gitHubAuthId
).
value
=
'pr_auth_id'
}
}
school-main-build/job_school_main_build.groovy
View file @
794d37ad
...
@@ -42,6 +42,7 @@ listView('School_jobs') {
...
@@ -42,6 +42,7 @@ listView('School_jobs') {
}
}
jobs
{
jobs
{
name
(
'school-main-build'
)
name
(
'school-main-build'
)
name
(
'school-GitHub-Pull-Request-Builder'
)
}
}
}
}
\ No newline at end of file
school-main-build/job_school_pr_build.groovy
0 → 100644
View file @
794d37ad
job
(
'school-pr-build'
)
{
concurrentBuild
()
logRotator
{
numToKeep
(
7
)
}
scm
{
git
{
remote
{
url
(
'https://github.com/gajendrularamarao/school.git'
)
}
branch
(
'${REVISION}'
)
}
}
triggers
{
scm
(
'* * * * *'
)
}
steps
{
gradle
(
'clean build'
)
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment