Commit 4a9fe867 authored by RamaRao's avatar RamaRao

to change scripts

parent c4869721
job('pem-pricegroup-ui-build') {
wrappers { def gitUrl = "https://github.com/gajendrularamarao/fedci-pipelines.git"
credentialsBinding {
usernamePassword('GITHUB_USER', 'GITHUB_TOKEN', 'pem-github-token') job('school--main-build') {
usernamePassword('ARTIFACTORY_USER', 'ARTIFACTORY_KEY', 'github_credential') description "Builds MyProject from master branch."
} parameters {
} stringParam('COMMIT', 'HEAD', 'Commit to build')
authorization {
permission('hudson.model.Item.Build', 'PEM-FEDCI-PIPELINE-DEVTEAM')
permission('hudson.model.Item.Configure', 'PEM-FEDCI-PIPELINE-DEVTEAM')
} }
logRotator { logRotator {
numToKeep(7) numToKeep(15)
}
label('pipes-docker-agent')
environmentVariables {
env('APP_GIT_URL', 'https://github.gapinc.com/plan/pem-price-groups-ui')
} }
scm { scm {
git { git {
remote { remote {
url('${APP_GIT_URL}.git') url gitUrl.
credentials('github_credential')
}
branch("origin/master")
} }
branch("master") extensions {
wipeOutWorkspace()
localBranch master
} }
} }
steps { steps {
gradle { gradle {
useWrapper(true) useWrapper(true)
makeExecutable(true) makeExecutable(true)
tasks('clean yarn_install build test artifactoryPublish -Dspring.profiles.active=prod') tasks('clean build')
switches('-g . --no-daemon') switches('-g . --no-daemon')
fromRootBuildScriptDir(true) fromRootBuildScriptDir(true)
} }
} }
triggers { triggers {
scm('* * * * *') { scm('* * * * *') {
ignorePostCommitHooks() ignorePostCommitHooks()
} }
} }
publishers {
wrappers {
colorizeOutput()
}
}
} }
listView('pem-pricegroup-ui') { listView('School_jobs') {
columns { columns {
status() status()
weather() weather()
...@@ -57,12 +53,7 @@ listView('pem-pricegroup-ui') { ...@@ -57,12 +53,7 @@ listView('pem-pricegroup-ui') {
buildButton() buildButton()
} }
jobs { jobs {
name('pem-pricegroup-ui-build') name('school--main-build')
name('pem-pricegroup-ui-pr-build')
name('PEM-Pricegroup-Ui-GitHub-Pull-Request-Builder')
name('pem-vmware-pricegroup-ui-deploy-to-environment')
name('pem-pricegroup-ui-prod-migrate-artifact')
name('pem-vmware-pricegroup-ui-deploy-to-production')
name('pem-pricegroup-ui-deploy-to-azure-environment')
} }
} }
\ 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