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
c4869721
Commit
c4869721
authored
Feb 14, 2020
by
RamaRao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
to change scripts
parent
13cc6eea
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
194 deletions
+0
-194
job_PEM_Pricegroup_Ui_GitHub_Pull_Request_Builder.groovy
.../job_PEM_Pricegroup_Ui_GitHub_Pull_Request_Builder.groovy
+0
-65
job_pem_pricegroup_ui_pr_build.groovy
...cegroup-ui/pre-prod/job_pem_pricegroup_ui_pr_build.groovy
+0
-49
job_pem_vmware_pricegroup_ui_deploy_to_environment.groovy
...job_pem_vmware_pricegroup_ui_deploy_to_environment.groovy
+0
-80
job_pem_pricegroup_ui_build.groovy
school-main-build/job_pem_pricegroup_ui_build.groovy
+0
-0
No files found.
pem-pricegroup-ui/pre-prod/job_PEM_Pricegroup_Ui_GitHub_Pull_Request_Builder.groovy
deleted
100644 → 0
View file @
13cc6eea
import
javaposse.jobdsl.dsl.jobs.MultiJob
multiJob
(
'PEM-Pricegroup-Ui-GitHub-Pull-Request-Builder'
)
{
concurrentBuild
()
environmentVariables
{
env
(
'APP_GIT_URL'
,
'https://github.gapinc.com/plan/pem-price-groups-ui'
)
}
properties
{
githubProjectUrl
(
'https://github.gapinc.com/plan/pem-price-groups-ui'
)
rebuild
{
autoRebuild
(
false
)
rebuildDisabled
(
false
)
}
}
logRotator
{
numToKeep
(
7
)
}
authorization
{
permission
(
'hudson.model.Item.Build'
,
'PEM-FEDCI-PIPELINE-DEVTEAM'
)
permission
(
'hudson.model.Item.Cancel'
,
'PEM-FEDCI-PIPELINE-DEVTEAM'
)
}
scm
{
git
{
remote
{
url
(
'https://github.gapinc.com/plan/pem-price-groups-ui'
)
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
(
'pem-pricegroup-ui-pr-build'
){
parameters
{
predefinedProp
(
'REVISION'
,
'$ghprbActualCommit'
)
}
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'
}
}
pem-pricegroup-ui/pre-prod/job_pem_pricegroup_ui_pr_build.groovy
deleted
100644 → 0
View file @
13cc6eea
job
(
'pem-pricegroup-ui-pr-build'
)
{
concurrentBuild
()
//customWorkspace('$JOB_NAME/$BUILD_NUMBER/workspace')
environmentVariables
{
env
(
'APP_GIT_URL'
,
'https://github.gapinc.com/plan/pem-price-groups-ui'
)
}
wrappers
{
credentialsBinding
{
usernamePassword
(
'GITHUB_USER'
,
'GITHUB_TOKEN'
,
'pem-github-token'
)
usernamePassword
(
'ARTIFACTORY_USER'
,
'ARTIFACTORY_KEY'
,
'github_credential'
)
}
}
logRotator
{
numToKeep
(
7
)
}
label
(
'pipes-docker-agent'
)
environmentVariables
{
env
(
'APP_GIT_URL'
,
'https://github.gapinc.com/plan/pem-price-groups-ui'
)
}
scm
{
git
{
remote
{
url
(
'https://github.gapinc.com/plan/pem-price-groups-ui'
)
credentials
(
'github_credential'
)
name
(
'origin'
)
refspec
(
'+refs/pull/*:refs/remotes/origin/pr/*'
)
}
branch
(
'${REVISION}'
)
}
}
steps
{
gradle
{
useWrapper
(
true
)
makeExecutable
(
true
)
tasks
(
'clean yarn_install build test'
)
switches
(
'-g . --no-daemon'
)
fromRootBuildScriptDir
(
true
)
}
}
publishers
{
wrappers
{
colorizeOutput
()
}
}
}
pem-pricegroup-ui/pre-prod/job_pem_vmware_pricegroup_ui_deploy_to_environment.groovy
deleted
100644 → 0
View file @
13cc6eea
job
(
'pem-vmware-pricegroup-ui-deploy-to-environment'
)
{
wrappers
{
credentialsBinding
{
usernamePassword
(
'GITHUB_USER'
,
'GITHUB_TOKEN'
,
'pem-github-token'
)
usernamePassword
(
'CLOUD_FOUNDRY_USERNAME'
,
'CLOUD_FOUNDRY_PASSWORD'
,
'cloudfoundry_credential_pemtransformer'
)
}
}
logRotator
{
numToKeep
(
7
)
}
authorization
{
permission
(
'hudson.model.Item.Build'
,
'PEM-FEDCI-PIPELINE-DEVTEAM'
)
}
parameters
{
stringParam
(
'ARTIFACT_VERSION'
,
'40'
,
'Artifact version number to deploy'
)
choiceParam
(
'TARGET_ENVIRONMENT'
,
[
'qa'
,
'showcase'
,
'training'
,
'e2e'
,
'pilot'
,
'performance'
],
'Deploy to TDEV PCF Space'
)
choiceParam
(
'APP_MEMORY'
,
[
'1024'
,
'2048'
],
'Select the Amount of Memory Needed for your Application'
)
choiceParam
(
'INSTANCE_COUNT'
,
[
'1'
,
'2'
],
'Select the Number of Instances Needed for your Application'
)
}
environmentVariables
{
env
(
'PCF_DEPLOY_GRADLE_URL'
,
'https://github.gapinc.com/plan/pem-gradle-allprojects-pcf-deploy'
)
env
(
'ARTIFACTORY_URL'
,
'http://artifactory.gapinc.dev/artifactory/local-non-prod'
)
env
(
'jarNameSwitch'
,
'-Pjar_file=pem-pricegroup-ui-\${ARTIFACT_VERSION}.jar'
)
env
(
'org_name'
,
'PT-PriceServices'
)
env
(
'pcf_api'
,
'https://api.sys.cfplatform.dev.phx.gaptech.com'
)
env
(
'preprodConfigUri'
,
'https://pem-vmware-spring-cloud-config-server.apps.cfplatform.dev.phx.gaptech.com/'
)
}
scm
{
git
{
remote
{
url
(
'${PCF_DEPLOY_GRADLE_URL}.git'
)
credentials
(
'github_credential'
)
}
branch
(
"master"
)
}
}
properties
{
}
steps
{
shell
(
'wget -q \${ARTIFACTORY_URL}/com/gap/pem/pem-pricegroup-ui/${ARTIFACT_VERSION}/pem-pricegroup-ui-\${ARTIFACT_VERSION}.jar'
)
gradle
{
useWrapper
(
true
)
makeExecutable
(
true
)
tasks
(
'cfRename'
)
switches
(
'-g . -Papp_name=pem-pricegroup-ui -Papp_memory=${APP_MEMORY} -Ptarget_env=${TARGET_ENVIRONMENT} -Ppcf_api=${pcf_api} -Porg_name=${org_name}'
)
}
gradle
{
useWrapper
(
true
)
makeExecutable
(
true
)
tasks
(
'cfDeploy'
)
fromRootBuildScriptDir
(
true
)
switches
(
'-g . -Papp_name=pem-pricegroup-ui -Papp_memory=${APP_MEMORY} -Ptarget_env=${TARGET_ENVIRONMENT} -Pjar_file=pem-pricegroup-ui-\${ARTIFACT_VERSION}.jar -Pcloud_config_uri=${preprodConfigUri} -Ppcf_api=${pcf_api} -Porg_name=${org_name} --info'
)
}
gradle
{
useWrapper
(
true
)
makeExecutable
(
true
)
tasks
(
'cfHealth'
)
fromRootBuildScriptDir
(
true
)
switches
(
'-g . -Papp_name=pem-pricegroup-ui -Papp_memory=${APP_MEMORY} -Ptarget_env=${TARGET_ENVIRONMENT} -Ppcf_api=${pcf_api} -Porg_name=${org_name}'
)
}
gradle
{
useWrapper
(
true
)
makeExecutable
(
true
)
tasks
(
'cfSwapDeployed'
)
fromRootBuildScriptDir
(
true
)
switches
(
'-g . -Papp_name=pem-pricegroup-ui -Papp_memory=${APP_MEMORY} -Ptarget_env=${TARGET_ENVIRONMENT} -Ppcf_api=${pcf_api} -Porg_name=${org_name}'
)
}
gradle
{
useWrapper
(
true
)
makeExecutable
(
true
)
tasks
(
'cfUndeploy'
)
switches
(
'-g . -Papp_name=pem-pricegroup-ui -Papp_memory=${APP_MEMORY} -Ptarget_env=${TARGET_ENVIRONMENT} -Ppcf_api=${pcf_api} -Porg_name=${org_name}'
)
}
shell
(
'rm -rf pem-pricegroup-ui-\${ARTIFACT_VERSION}.jar'
)
}
}
pem-pricegroup-ui/pre-pro
d/job_pem_pricegroup_ui_build.groovy
→
school-main-buil
d/job_pem_pricegroup_ui_build.groovy
View file @
c4869721
File moved
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