-
Notifications
You must be signed in to change notification settings - Fork 401
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor document update with clear images #247
Open
srbala
wants to merge
3
commits into
jenkinsci:master
Choose a base branch
from
srbala:doc-upd
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,8 +21,8 @@ The Github plugin decorates Jenkins "Changes" pages to create links to | |
your Github commit and issue pages. It adds a sidebar link that links | ||
back to the Github project page. | ||
|
||
 | ||
 | ||
 | ||
 | ||
|
||
When creating a job, specify that is connects to git. Under "Github | ||
project", put in: [email protected]:*Person*/*Project*.git Under "Source | ||
|
@@ -65,15 +65,15 @@ GitHub OAuth token so that Jenkins can login as you to do this. | |
|
||
**Step 1.** Go to the global configuration and add GitHub Server Config. | ||
|
||
 | ||
 | ||
|
||
**Step 2.1.** Create your personal access token in GitHub. | ||
|
||
Plugin can help you to do it with all required scopes. Go to | ||
**Advanced** -\> **Manage Additional GitHub Actions** -\> **Convert | ||
Login and Password to token** | ||
|
||
 | ||
 | ||
|
||
> *Two-Factor Authentication* | ||
> | ||
|
@@ -85,7 +85,8 @@ Login and Password to token** | |
> credentials. | ||
|
||
**Step 2.2.** Select previously created "Secret Text" credentials with | ||
GitHub OAuth token. | ||
GitHub OAuth token. Username/Passwowrd credentials cannot be used for | ||
auto configuration of GitHub security policy effecive since Feb 21. | ||
|
||
*Required scopes for token* | ||
|
||
|
@@ -103,10 +104,12 @@ only credentials that matched by predefined domains. | |
 | ||
|
||
**Step 3.** Once that configuration is done, go to the project config of | ||
each job you want triggered automatically and simply check "Build when a | ||
change is pushed to GitHub" under "Build Triggers". With this, every new | ||
each job you want triggered automatically and simply check "GitHub hook | ||
trigger for GITScm polling" under "Build Triggers". With this, every new | ||
push to the repository automatically triggers a new build. | ||
|
||
 | ||
|
||
Note that there's only one URL and it receives all post-receive POSTs | ||
for all your repositories. The server side of this URL is smart enough | ||
to figure out which projects need to be triggered, based on the | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By trial and error I found that the "Secret text" token, at least for a public github.com account, should contain just the token value ("ghp_Vari0usChars"); the "Test Connection" button helps see if that works. It seems that github knows the user name from that token alone.
I did not uncover what "in corresponding domain" here means in practice, and "Credentials are filtered on changing custom GitHub URL" in help text. My credential ID and description deliberately did not mention neither the account name nor github.com, and it still worked for the default https://api.github.com URL.
This would be nice to clarify in the doc and help, while we are at it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding some some text and screen shorts would be nice, I think.