{"id":14993907,"url":"https://github.com/rathorsunpreet/jenkins-github-pipeline","last_synced_at":"2026-03-17T00:38:51.967Z","repository":{"id":242128430,"uuid":"808750433","full_name":"rathorsunpreet/Jenkins-Github-Pipeline","owner":"rathorsunpreet","description":"A Jenkinsfile Pipeline in Declarative Syntax that fetches another Github Repo, waits for user input within a certain time frame and executes the tests if possible.","archived":false,"fork":false,"pushed_at":"2024-06-01T02:20:46.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T08:15:02.051Z","etag":null,"topics":["declarative","github","groovy","groovy-script","jenkins","jenkins-pipeline","jenkinsfile"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rathorsunpreet.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-31T18:28:07.000Z","updated_at":"2024-06-01T02:20:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"a866b365-6c7b-4a21-9471-79ee4bfb0484","html_url":"https://github.com/rathorsunpreet/Jenkins-Github-Pipeline","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"6b3263accf8b0c64daaa484ca7eeaf98abc68d1c"},"previous_names":["rathorsunpreet/jenkins-github-pipeline"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rathorsunpreet%2FJenkins-Github-Pipeline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rathorsunpreet%2FJenkins-Github-Pipeline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rathorsunpreet%2FJenkins-Github-Pipeline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rathorsunpreet%2FJenkins-Github-Pipeline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rathorsunpreet","download_url":"https://codeload.github.com/rathorsunpreet/Jenkins-Github-Pipeline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243114454,"owners_count":20238600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["declarative","github","groovy","groovy-script","jenkins","jenkins-pipeline","jenkinsfile"],"created_at":"2024-09-24T15:32:55.167Z","updated_at":"2025-12-25T00:42:10.761Z","avatar_url":"https://github.com/rathorsunpreet.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins-Github-Pipeline\n\nJenkins-Github-Pipeline is a Jenkinsfile using Declarative Syntax. It downloads the git repository [SimpleAPITestInterface](https://github.com/rathorsunpreet/SimpleAPITestInterface) and waits for user input within a specified time frame, after which test cases are executed.\n\nThere are three outcomes that can occur, namely:\n* **User input is provided**: Then test execution continues as normal.\n* **User aborts the job**: Then the job is simply aborted and no execution of test cases takes place.\n* **User is unable to provide input**: User Input is expected within 1 minute, if the user is unable to provide an input, then the default \"all report\" is used.\n\nIf keyword \"report\" is present during input, then a special stage within the pipeline is executed which creates a zip file, named \"HTML_Report.zip\" at the project root.\n\nDemo / Explanation: https://www.youtube.com/watch?v=R1NcrJdQBN8\n\n## Requirements\n* [Jenkins](https://www.jenkins.io/)\n* [NodeJS Jenkins Plugin](https://plugins.jenkins.io/nodejs/)\n* [Pipeline Utility Steps Plugin](https://plugins.jenkins.io/pipeline-utility-steps/)\n* An account that has admin priviledges or an account that can get the script approved. ![Script Approval Screen](https://github.com/rathorsunpreet/Jenkins-Github-Pipeline/blob/master/Images/Script_Approval_2.PNG \"Script Approval Screen\")\n\n## Installation\n1. Create a new Pipeline job.\n2. Under Pipeline -\u003e Definition, select \"Pipeline script from SCM\".\n3. Under SCM -\u003e Repositories -\u003e Repository URL, provide the url \"https://github.com/rathorsunpreet/Jenkins-Github-Pipeline\".\n4. Under Branches to build -\u003e Branch Specifier, make sure it is \"*/master\".\n5. Under Script Path, make sure it is \"Jenkinsfile\".\n6. Click Save.\n\n### OR\n\n1. Create a new Pipeline job.\n2. Under Pipeline -\u003e Definition, make sure it is \"Pipeline Script\".\n3. Under the Script section, copy and paste the Jenkinsfile.\n4. Uncheck \"Use Groovy Sandbox\".\n5. Click on \"Apply\".\n6. Click on Approve Script. ![Script Approval Configuration Pipeline Screen](https://github.com/rathorsunpreet/Jenkins-Github-Pipeline/blob/master/Images/Script_Approval.PNG \"Script Approval Configuration Pipeline Screen\")\n7. Click on \"Save\".  \n\n## Usage\nClick on \"Build Now\".\n\n## Notes\nYou might need to approve the script or whitelist groovy methods if you get an error on the lines of \"Scripts not permitted to use method org.jenkinsci.plugins.workflow.steps.FlowInterruptedException \\\u003cgroovy method name here\\\u003e\"\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frathorsunpreet%2Fjenkins-github-pipeline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frathorsunpreet%2Fjenkins-github-pipeline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frathorsunpreet%2Fjenkins-github-pipeline/lists"}