CJE(2017) Projects - Part 1 - Source Code Management and the Git Plugin

2018年04月29日


Jenkins homepage
My Freestyle Project
Configure
Source Code Management
Git
Repositories, Repository URL: git@github.com:<accountname>/jenkins-test.git

Note
https://github.com/<accountname>/jenkins-test
Clone with SSH, 复制地址:git@github.com:<accountname>/jenkins-test.git
Credentials: Use jenkins

Branches to build, Branch Specifier (blank for 'any'): leave it as blank
Repository browser: githubweb
URL: https://github.com/<GitHub-account>/jenkins-test

Build Triggers
选中Poll SCM
Schedule:

* * * * *

Build, Execute shell
Command: git log

Jenkins homepage, My Freestyle Project, Configure
Build Triggers
Poll SCM
Schedule:
45 * * * *

Important
Make sure git is installed on the Jenkins slave node.



Category: Jenkins Tags: public

Upvote


Downvote