Fix: Integrate the script and parameterised build code in Jenkins pipeline item to github
To integrate a Jenkins pipeline script with parameterized builds and link it to a GitHub repository, you can follow these steps: 1. **Set Up a GitHub Repository**: - Ensure that you have a GitHub repository where your Jenkinsfile (Pipeline script) will be stored. 2. **Create a Jenkins Pipeline**: - In Jenkins, create a new pipeline item (or job). - In the pipeline configuration, select "Pipeline script from SCM" as the definition. 3. **Configure Your GitHub Repository**: - Under the "SCM" section, choose "Git" as the SCM. - Provide the URL of your GitHub repository (e.g., `https://github.com/yourusername/your-repo.git`). - You can choose to use credentials for authentication or use a username/password combination if required. 4. **Specify Your Jenkinsfile Location**: - In the "Script Path" field, specify the relative path to your Jenkinsfile within the repository (e.g., `Jenkinsfile` or `folder/Jenkinsfile`). 5. **Parameteri