Commit 4a9fe867 authored by RamaRao's avatar RamaRao

to change scripts

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