While deploying using Jenkins I get the error:
Error: Cannot change which global value set this picklist uses
I have made a global picklist which has three values out of which one is default.
<?xml version="1.0" encoding="UTF-8"?>
<GlobalPicklist xmlns="http://soap.sforce.com/2006/04/metadata">
<globalPicklistValues>
<fullName>Planned</fullName>
<default>false</default>
</globalPicklistValues>
<globalPicklistValues>
<fullName>Done</fullName>
<default>true</default>
</globalPicklistValues>
<globalPicklistValues>
<fullName>Cancelled</fullName>
<default>false</default>
</globalPicklistValues>
<masterLabel>Call Status</masterLabel>
<sorted>false</sorted>
</GlobalPicklist>
I am using that global picklist in an object field.
<fields>
<fullName>Status_MDE__c</fullName>
<description>If a call is planned with a future date, the status is set to "Planned" automatically.
If a call is created with todays date or older, the status is set to "Done" automatically</description>
<externalId>false</externalId>
<globalPicklist>CallStatus_MDE</globalPicklist>
<label>Status</label>
<required>false</required>
<trackFeedHistory>false</trackFeedHistory>
<trackHistory>false</trackHistory>
<trackTrending>false</trackTrending>
<type>Picklist</type>
</fields>
Now when I pull data from Mavensmate the global picklist values are defined in the recordTypes of the object which causes this error.
<recordTypes>
<fullName>Regular_Calls</fullName>
<active>true</active>
<label>Regular Calls</label>
<picklistValues>
<picklist>CallStatus_MDE</picklist>
<values>
<fullName>Cancelled</fullName>
<default>false</default>
</values>
<values>
<fullName>Done</fullName>
<default>false</default>
</values>
<values>
<fullName>Planned</fullName>
<default>false</default>
</values>
</picklistValues>
</recordTypes>
I tried the idea mentioned here - https://success.salesforce.com/ideaView?id=08730000000cJegAAE