Hi All,
I really need help on Salesforce deployment.
I am using the the followin components
1. VS COde
2. Git Lab (version control)
3. Jenkins with Ant Tool
I have installed my ant also in my system.
Environment Variable shows the value for ANT_HOME like "C:\Users\Syam.Mohan\Desktop\EKINOPS - Salesforce\Deployment Tools in Salesforce\ANT Migration Tool\apache-ant-1.9.16-bin".
In Jenkins, i have configured 'deployCode' as Targets
I have added two files build.xml and build.properties into my Salesforce project root folder .
Added the Salesforce Credentials in build.properties file.
And in build.xml file contains deployCode as below:
<target name="deployCode">
<sf:deploy username="${sf.username}" password="${sf.password}" sessionId="${sf.sessionId}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="codepkg" testLevel="RunSpecifiedTests" rollbackOnError="true">
<runTest>SampleDeployClass</runTest>
</sf:deploy>
</target>
I have added the newly apex code created in Package File like below
<types>
<members>MyApexForAccountContact</members>
<name>ApexClass</name>
</types>
Now, i am not understanding why i am always getting as
The apex class in package.xml file is not included in zipped folder.
Can somebody tell me where should i add the codepkg folder to paste the apex class.
And also, do we have to include the codepkg inside the Project folder or some where in the ant directory?
Thanks,
Syam
Hi, sorry for the inconvenience. If you don't receive a response here, we recommend reaching out to our support team for further assistance. You can do so by visiting https://help.salesforce.com/s/articleView?id=000393090&language=en_US&type=1