Currently in our company we are executing tests from CCNet (in Automation VM) by specifying different build arguments, however I feel it is now best to migrate to better automation server which is Jenkins
 
I am new to Jenkins world however I started installing the jenkins (though had issue in starting the Jenkins Service, later found it was due to JDK version issue)
 
But now I have installed all the needed plugins(GIT - for gitlab repository, MSBuild and MStest)
 
But I do not know how do I specify build arguments in Jenkins the way we do it in CCNet.config files
 
Here is the CCNet Config File that we use to Force the build
  1. "AutoTests - Payments" queue="Q13">    
  2.      
  3.          
  4.       
  5.    D:\GIT-TA    
  6.   D:\DEV\deploy\AutomatedTest\BuildLogs\BasicTests.Payments    
  7.   AutomatedTest    
  8.   60    
  9.   "defaultlabeller">    
  10.      0.1.    
  11.      true    
  12.      000    
  13.       
  14.       
  15.          
  16.         D:\MSTestExtended\Runner.exe    
  17.         run-tests /project:payments /retriesCount:1    
  18.         6800    
  19.         0    
  20.          
  21.       
  22.       
  23.          
  24.             
  25.            D:\DEV\deploy\AutomatedTest\Results\TestPublish\BasicTests.Payments_Rerun.trx    
  26.             
  27.          
  28.          
  29.     
Likewise we have many projects and then we do the build for that, but now in Jenkins I feel little lost - how do I configure it to with my according
 
Note: IN CCNet - it used to pick the branch whichever is checkout in VM, but I see in Jenkins we also need to manually setup the branch name; so in that case also Is there a way to specify the branch during build time?
 
And if I can add the selection for run-tests /project:payments /retriesCount:1 - when we initiate the jenkins build, it will aske to select the arguments
 
Can someone help me in that to understand the Jenkins way of doing this?