๐๐ง๐ Trigger Jenkins Build Remotely: Automate with Ease! ๐๐ฒ
Click on New Item
create a new project and select a freestyle project
Click on source management
enter your Repository URL

In the branch specifier, you have to put main or master as related to your repository

After that click on manage jenkins
after that click on the plugin Build Authorization Token Root

click on install without restart
Then Go back to your project and click on configure

In the Authentication Token enter the user-defined token eg: demo_token1
save it and trigger it in another tab
JENKINS_URL/job/demo_project/build?token=TOKEN_NAME
For example
http://54.201.155.117:8080//job/demo_project/build?token=demo_token1
Then go to your project here you will see the new build is triggered
If you want to automate it you can create a shell scripts file
#!/bin/bash
http://54.201.155.117:8080/buildByToken/build?job=demo_project\&token=demo_token1
After that give permission for the file as
chmod 777 <file_name>
Then run it as
./<file_name>
After that, you can see that the new build is triggered.
