![]() In most cases, you can just leave it to default. Repository browser: By default, this drop down list will be set to “Auto”. The following are various possible examples for the “Branch Specifier” field:Īdd Branch button: Click on this button to add the branch specified in the above “Branch Specifier” field to be used. ![]() The syntax for this field is: refs/heads/ But, if you leave this blank, all branches will be examined for changes and built. For most cases, you can leave this to default. Instead, if you always want to retrive just one branch, you may want to modify this.Īdd repository button: Click on “Add repository” to create this as the default git repository to be used by this particular Jenkins Job.īranches to build section: In this section under “Branch Specifier (blank for ‘any’):”, the default value is */master. By default will be retrieve all the branch heads as remotes/repositoryname/branchname. This is Ok for most of you, and you can leave this empty. Refspec – The default refspec is “+refs/heads/*:refs/remotes/REPOSITORYNAME/*”.This “name” is exactly the same as the one used in the git remote command. Name – You can leave this empty, and Jenkins will automatically generate unique name.For most cases, you don’t need to enter anything here. From here, you can specify the credentials that are required for the Git URL specified above.Īdvanced button: When you click on the “Advanced” button, you’ll see two more text boxes. For example: following are some possible syntax for the repository URL:Ĭredentials: By default, this will be “None”. The syntax is same as what you’ll specify in the git command line. Repository URL: This will be the URL of your remote repository. Under the Git section, in the Repositories section, you’ll see the following: This will expand the section, and show all git related parameters as shown below. None (This option will be selected by default).Ĭlick on “Git” to select it.Select “Git” for Source Code Managementįor this particular job, click on “Source Code Management” tab. ![]() In the edit mode, you’ll see multiple tabs on the top, and “General” tab will be selected. Select “Free Style Project” as type as shown below. Name: Dev App Build. Type: Free Style Projectīy default this will go into editing the job after creating it. Go to “Available” tab, search for “git plugin”, and click on “Install without restart”.įrom your plugins list, if you see that “Git Plugin” is an older version, then upgrade it to the latest version as explained here: How to Upgrade Jenkins to New Version and Update Plugins Create New Jenkins JobĬlick on “New” to create a new jenkins job.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |