Adarsh Jenkins
Adarsh Jenkins
Adarsh Jenkins
jlr-
apps.com/secure/Dashboard.jspa/'], gitLabConnection(gitLabConnection: 'CVRE',
jobCredentialId: '05127b00-a91e-41bf-9012-52e8c062f876'),
parameters([choice(choices: ['iPLMCCDSPlan', 'iPLMCCDSTemplate',
'iPLMCPSCInformation', 'iPLMCommodityPlanType', 'iPLMCustoCATDraftingDiscipline',
'iPLMCustoCPSCInformation', 'iPLMCustoDELLmiProductionGeneralOperation',
'iPLMCustoDELLmiProductionGeneralSystem',
'iPLMCustoDELLmiProductionPunctualOperation',
'iPLMCustoDELLmiProductionUnloadingOperation',
'iPLMCustoDELLmiProductionWorkplanSystem', 'iPLMCustoDocument',
'iPLMCustoElectricalInformation', 'iPLMCustoIVSInstance', 'iPLMCustoIVSProductCFG',
'iPLMCustoInformation', 'iPLMCustoIssueTypeInformation', 'iPLMCustoMFGProductCFG',
'iPLMCustoPLMFst_Fasteners', 'iPLMCustoPLMFst_FlexibleFasteners',
'iPLMCustoProductCFG', 'iPLMCustoProductConfiuration',
'iPLMCustoProductDiscipline', 'iPLMCustoRequirement', 'iPLMCustoTASEEnvironment',
'iPLMDataMigrPLMElectricalDictionary', 'iPLMDataMigrProductCFG',
'iPLMDataMigrProductDiscipline', 'iPLMEBERType', 'iPLMEBERType',
'iPLMLegacyInformation', 'iPLMPartReuse'], description: 'Prod_CR_server side
deployment', name: 'Prod_CR')])])
pipeline {
agent any
environment {
// K80 sever login details
// server = K80
USER = "root"
HOST = "sul7gblv4460"
stages {
stage ('iPLMCCDSPlan') {
steps {
git url: 'https://git-gdd.sdo.jlrmotor.com/PLMX/plm_jlr_code.git',
branch: 'tag_BD2310', credentialsId: '05127b00-a91e-41bf-9012-52e8c062f876'
echo 'copy git-code to the server'
sh '''
rsync -a -essh /opt/enovia/jenkins/workspace/Prod_CR/
"root@sul7gblv4460:/opt/enovia/plm_jlr_code/"
'''
echo 'stopping all the required service'
sh '''
ssh -l $USER $HOST "su -c
'/opt/enovia/scripts/start_stop_status_monolithic_22x.sh K80 01_All Stop' enovia"
'''
echo 'all the required services are stopped now'
echo 'stopping the cron jobs'
sh '''
ssh -l $USER $HOST "su -c '/opt/enovia/scripts/cron_comment.sh'
enovia"
'''
echo 'the cron jobs are stopped'
'''
}
post {
always {
mail to: "Shubdha Shaikh
<sshaik18@partner.jaguarlandrover.com>; Swapnesh Sonkusre
<ssonkusr@partner.jaguarlandrover.com> ",
subject: "DB Code Backup",
body: "Please start taking backup"
}
}
mqlc
set context user admin_platform;
set env SPINNERIMPORTPATH /tmp/plm_jlr_code-tag_BD2310-Enterprise-
spinner/Enterprise/spinner/;
exec prog SpinnerImport content=package username=admin_platform
password=Experience3D packagename=iPLMCCDSPlan;
}
}
}
}