Extract salesforce_ant_37.0.zip to a folder. Edit Path variable to add value %ANT_HOME%\binĪpache Ant(TM) version 1.9.7 compiled on April 9 2016ĭownload Migration Tool from, at this moment it will bring me to, this may change based on Salesforce release. New variable ANT_HOME value C:\SFDC\Ant\apache-ant-1.9.7-bin\apache-ant-1.9.7 You need to add this into System variables from Advanced system settings from Control Panel\All Control Panel Items\System, click Environment Variables.
zip archive file.ĭownload the file to a folder and extract it. Edit Path variable to add value %JAVA_HOME%\bin New variable JAVA_HOME value C:\Program Files\Java\jdk1.8.0_102 Go to Advanced system settings from Control Panel\All Control Panel Items\System, click Environment Variables. ** if your JAVA_HOME variable and environment Path have not configured, follow this step: Java HotSpot(TM) Client VM (build 25.45-b02, mixed mode, sharing) Java(TM) SE Runtime Environment (build 1.8.0_45-b15) Once installed successfully, check from command prompt: SERVICE_CREDS=credentials('salesforce-creds')Įrror message from Jenkins console even after logging in to site:Ĭ:\Program Files (x86)\Jenkins\workspace\abc\build.xml:26: Invalid username, password, security token or user locked out.** if you do not have JDK installed, download latest JDK from
I want to use Jenkins environment variable for credentials as shown in code below, to specify the Salesforce login username and password, and pass the same to build.xml file so that I can deploy the code to Salesforce platform using Ant migration tool.