{"id":21058141,"url":"https://github.com/devkyt/jenkins-trigger","last_synced_at":"2025-03-14T00:28:15.259Z","repository":{"id":234244555,"uuid":"776754272","full_name":"devkyt/jenkins-trigger","owner":"devkyt","description":"GitHub Action to trigger a job on Jenkins","archived":false,"fork":false,"pushed_at":"2024-04-24T12:38:59.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T19:38:08.956Z","etag":null,"topics":["github-actions","jenkins","triggers"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devkyt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-03-24T11:57:53.000Z","updated_at":"2024-04-24T12:37:34.000Z","dependencies_parsed_at":"2025-01-20T19:42:50.736Z","dependency_job_id":null,"html_url":"https://github.com/devkyt/jenkins-trigger","commit_stats":null,"previous_names":["devkyt/jenkins-trigger"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkyt%2Fjenkins-trigger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkyt%2Fjenkins-trigger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkyt%2Fjenkins-trigger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devkyt%2Fjenkins-trigger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devkyt","download_url":"https://codeload.github.com/devkyt/jenkins-trigger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243502798,"owners_count":20301125,"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":["github-actions","jenkins","triggers"],"created_at":"2024-11-19T17:06:28.961Z","updated_at":"2025-03-14T00:28:15.238Z","avatar_url":"https://github.com/devkyt.png","language":"Shell","readme":"# Annotations\nThe one-line GitHub Action to remotely trigger a job on Jenkins. You just need to pass 3 parameters to get it working:\n\n| Parametr  | Description |\n| ------------- | ------------- |\n| JENKINS_URL  | URL of a Jenkins instance with specified job's path |\n| JENKINS_USER  | User from whose identity an API will be called |\n| JENKINS_API_KEY  | User's valid API key |\n\n\n## How to use\nHere is a example of how to trigger Jenkins job on every push to the staging or dev branch:\n```yaml\nname: Trigger Job on Jenkins\non:\n  push:\n    branches:\n       - staging\n       - dev\n\njobs:\n  trigger:\n    name: Trigger\n    runs-on: ubuntu-latest\n\n    steps:\n    - uses: devkyt/jenkins-trigger@main\n      with: \n        JENKINS_URL: https://my.jenkins.com/job/Pipelines/job/Frontend/buildWithParameters?BRANCH=dev\u0026ENVIRONMENT=dev\n        JENKINS_USER: jenkins\n        JENKINS_API_KEY: set324sfvokom87ldfs\n```\n\n#### About URLs\nThe default job's URL looks like this: ```https://my.jenkins.com/job/Backend/build```.\u003cbr\u003e\n\nBut if your job supports input parameters  then you should use ```buildWithParameters``` instead of the ```build``` at the end of the path. Even if you don't want to run the job with some actual params. Otherwise, you can provide them as a query ```https://my.jenkins.com/job/Backend/buildWithParameters?BRANCH=dev\u0026ENVIRONMENT=dev```. \n\nBelow you will find a few examples of Jenkins job URLs.\n\n| Type  | Example |\n| ------------- | ------------- |\n| Common  | https://my.jenkins.com/job/Backend/build |\n| Multibranch  | https://my.jenkins.com/job/Pipelines/job/Frontend/buildWithParameters |\n| Common with params  | https://my.jenkins.com/job/Backend/buildWithParameters?BRANCH=dev\u0026ENVIRONMENT=dev |\n| Multibranch with params  | https://my.jenkins.com/job/Pipelines/job/Frontend/buildWithParameters?BRANCH=dev\u0026ENVIRONMENT=dev|\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkyt%2Fjenkins-trigger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevkyt%2Fjenkins-trigger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevkyt%2Fjenkins-trigger/lists"}