title: Need help in migrating CruiseControl.Net to Jenkins for MSTest Automation Projects
body: <p>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</p>
  <p>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)</p>
  <p>But now I have installed all the needed plugins(GIT - for gitlab repository, MSBuild and MStest)</p>
  <p>But I do not know how do I specify build arguments in Jenkins the way we do it in CCNet.config files</p>
  <p>Here is the CCNet Config File that we use to Force the build</p>
  <pre><code>  &lt;project name=&quot;AutoTests - Payments&quot; queue=&quot;Q13&quot;&gt;
   &lt;triggers&gt;
       &lt;!--&lt;scheduleTrigger time=&quot;03:30&quot; buildCondition=&quot;ForceBuild&quot; name=&quot;Scheduled&quot; /&gt;--&gt;
    &lt;/triggers&gt;
     &lt;workingDirectory&gt;D:\GIT-TA&lt;/workingDirectory&gt;
    &lt;artifactDirectory&gt;D:\DEV\deploy\AutomatedTest\BuildLogs\BasicTests.Payments&lt;/artifactDirectory&gt;
    &lt;category&gt;AutomatedTest&lt;/category&gt;
    &lt;modificationDelaySeconds&gt;60&lt;/modificationDelaySeconds&gt;
    &lt;labeller type=&quot;defaultlabeller&quot;&gt;
       &lt;prefix&gt;0.1.&lt;/prefix&gt;
       &lt;incrementOnFailure&gt;true&lt;/incrementOnFailure&gt;
       &lt;labelFormat&gt;000&lt;/labelFormat&gt;
    &lt;/labeller&gt;
    &lt;tasks&gt;
       &lt;exec&gt;
          &lt;executable&gt;D:\MSTestExtended\Runner.exe&lt;/executable&gt;
          &lt;buildArgs&gt;run-tests /project:payments /retriesCount:1&lt;/buildArgs&gt;
          &lt;buildTimeoutSeconds&gt;6800&lt;/buildTimeoutSeconds&gt;
          &lt;successExitCodes&gt;0&lt;/successExitCodes&gt;
       &lt;/exec&gt;
    &lt;/tasks&gt;
    &lt;publishers&gt;
       &lt;merge&gt;
          &lt;files&gt;
             &lt;file&gt;D:\DEV\deploy\AutomatedTest\Results\TestPublish\BasicTests.Payments_Rerun.trx&lt;/file&gt;
          &lt;/files&gt;
       &lt;/merge&gt;
       &lt;xmllogger /&gt;
    &lt;/publishers&gt;
  </code></pre>
     
  <p>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</p>
  <p>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?</p>
  <p>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</p>
  <p>Can someone help me in that to understand the Jenkins way of doing this?</p>