How to create a new token from GitHub

From PheonixSolutions
Jump to navigation Jump to search

How to Deploy Code from GitHub via Jenkins

Step 1

  1. Sign in to your GitHub account.
  2. Click on your profile picture in the top-right corner of the page and select "Settings" from the dropdown menu.

Step 2

  1. In the left sidebar, click on Developer settings.

Step 3

  1. On the Developer settings page, click on "Personal access tokens."
  2. Personal access tokens down click tokens(classic)
  3. And click Generate new token

Step 4

  1. After Generate new token click generate new token (classic)

Step 5

  1. First give your project name on the note
  2. Expiration gives no expiration
  3. Click all options on the select scopes
  4. After that give generate a token
  5. Finally it comes to tokens you need copy token

Step 6

  1. Go to the rebuild option and give this project is parameterized option
  2. Name option gives the branch
  3. Choice option gives main and development

Step 7

  1. Source code management down select the git option
  2. Repository URL option gives git URL
  3. Credentials give you to generate one token on git you need to paste here

Step 8

  1. Give Jenkins IP address and username
  2. After the IP address Please give the document root on the command

Step 9

  1. Give the save option

Step 10

  1. After saving the Jenkins come to limogenie-fe you press build with parameters
  2. Select the branch as development and give built It takes 10 seconds, please wait
  3. Go to status
  4. Go to the status it shows the green right symbol, which means it was successfully created the Jenkins job
  5. Otherwise, it shows a red cross mark that is a failure, and Jenkins wants to recheck or check the server configuration file.
  6. Check console output it shows finished success
  7. Other it shows finished failed

Step 11

  1. After completing the Jenkins job it shows successful the console output
  2. Once you check the domain URL in the browser It shows the webpage on the browser
  3. Successfully completed the Jenkins job