jenkinsci / salesforce-migration-assistant-plugin

Salesforce Migration Assistant plugin for Jenkins CI
https://plugins.jenkins.io/salesforce-migration-assistant-plugin/
MIT License
29 stars 15 forks source link

Not able to push codes available in email, translations and reports folder #24

Open sanjaykharwar opened 7 years ago

sanjaykharwar commented 7 years ago

I am using plugin v3.0 (Created from source). I have 2 package.xml files in my git project. First is in src folder and other is ../src/deply/unpackaged. This plugin showing error message that some items are not available to him (but same files are available in git) also same is not mentioned in my package.xml. So I like to know that what is the location of package.xml file which is used by plugin.

Any idea how to solve this issue.

Error Message [SMA] Component Failures package.xml():Unknown type name 'Translation' specified in package.xml [SMA] Component Failures package.xml():Unknown type name 'Reports' specified in package.xml [SMA] Component Failures package.xml(Test_4_Reminder_Email_2):An object 'Smart_Rooms_4_Reminder_Email_2' of type EmailTemplate was named in package.xml, but was not found in zipped directory

My package.xml file `<?xml version="1.0" encoding="UTF-8"?>

* ApexClass * ApexComponent * EmailTemplate * CustomLabels * CustomObject * ApexPage * ApexTrigger 36.0 ` --------------- **My Folder Structure in Eclipse** ![image](https://user-images.githubusercontent.com/6229801/28361031-00fa077c-6c95-11e7-98c7-befee855a7ae.png) Thanks, Sanjay Kharwar
sanjaykharwar commented 7 years ago

Able to find reason for all 3 error messages. For first two error messages, reason is wrong metadata name in salesforceMetadata.xml. Created one pull request for this fix

[SMA] Component Failures package.xml():Unknown type name 'Translation' specified in package.xml [SMA] Component Failures package.xml():Unknown type name 'Reports' specified in package.xml

For third error message, reason is that I have child folder in src/email i.e. src/email/XYX.

[SMA] Component Failures package.xml(Test_4_Reminder_Email_2):An object 'Smart_Rooms_4_Reminder_Email_2' of type EmailTemplate was named in package.xml, but was not found in zipped directory

Seems this plugin have issue if you have any folder in default named folder. I have faced same issue for Report section which also have one child folder in src/reports

Will update if able to fix child folder issue.