How to create a new token from GitHub
Jump to navigation
Jump to search
How to Deploy Code from GitHub via Jenkins
Step 1
- Sign in to your GitHub account.
- Click on your profile picture in the top-right corner of the page and select "Settings" from the dropdown menu.
Step 2
- In the left sidebar, click on Developer settings.
Step 3
- On the Developer settings page, click on "Personal access tokens."
- Personal access tokens down click tokens(classic)
- And click Generate new token
Step 4
- After Generate new token click generate new token (classic)
Step 5
- First give your project name on the note
- Expiration gives no expiration
- Click all options on the select scopes
- After that give generate a token
- Finally it comes to tokens you need copy token
Step 6
- Go to the rebuild option and give this project is parameterized option
- Name option gives the branch
- Choice option gives main and development
Step 7
- Source code management down select the git option
- Repository URL option gives git URL
- Credentials give you to generate one token on git you need to paste here
Step 8
- Give Jenkins IP address and username
- After the IP address Please give the document root on the command
Step 9
- Give the save option
Step 10
- After saving the Jenkins come to limogenie-fe you press build with parameters
- Select the branch as development and give built It takes 10 seconds, please wait
- Go to status
- Go to the status it shows the green right symbol, which means it was successfully created the Jenkins job
- Otherwise, it shows a red cross mark that is a failure, and Jenkins wants to recheck or check the server configuration file.
- Check console output it shows finished success
- Other it shows finished failed
Step 11
- After completing the Jenkins job it shows successful the console output
- Once you check the domain URL in the browser It shows the webpage on the browser
- Successfully completed the Jenkins job