Commit 8acda611 authored by RamaRao's avatar RamaRao

change script for school job

parent 21e90ba3
def gitUrl = "https://github.com/gajendrularamarao/fedci-pipelines.git"
job('school--main-build') { job('school--main-build') {
description "Builds MyProject from master branch." description "Builds MyProject from master branch."
parameters { parameters {
stringParam('COMMIT', 'HEAD', 'Commit to build') stringParam('COMMIT', 'HEAD', 'Commit to build')
} }
logRotator {
numToKeep(15)
}
scm { scm {
git { git {
remote { remote {
url gitUrl. url 'https://github.com/gajendrularamarao/school.git'
} }
branch("origin/master") branch("master")
}
extensions { extensions {
wipeOutWorkspace() wipeOutWorkspace()
localBranch master
}
} }
steps {
gradle {
useWrapper(true)
makeExecutable(true)
tasks('clean build')
switches('-g . --no-daemon')
fromRootBuildScriptDir(true)
} }
} }
triggers { triggers {
scm('* * * * *') { githubPush()
ignorePostCommitHooks()
} }
steps {
gradle('clean build')
} }
} }
listView('School_jobs') { listView('School_jobs') {
columns { columns {
status() status()
...@@ -53,7 +41,7 @@ listView('School_jobs') { ...@@ -53,7 +41,7 @@ listView('School_jobs') {
buildButton() buildButton()
} }
jobs { jobs {
name('school--main-build') name('school-main-build')
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment