{"id":21401629,"url":"https://github.com/stardogventures/lambda-slack-jenkins","last_synced_at":"2026-05-13T07:40:59.511Z","repository":{"id":87253940,"uuid":"125918963","full_name":"stardogventures/lambda-slack-jenkins","owner":"stardogventures","description":"Simple AWS lambda function to run jenkins jobs from a Slack slash command","archived":false,"fork":false,"pushed_at":"2018-03-19T21:00:17.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T16:17:53.355Z","etag":null,"topics":["aws-lambda","jenkins","slack"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stardogventures.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-03-19T20:53:21.000Z","updated_at":"2018-03-19T21:00:18.000Z","dependencies_parsed_at":"2023-05-27T03:00:11.653Z","dependency_job_id":null,"html_url":"https://github.com/stardogventures/lambda-slack-jenkins","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stardogventures/lambda-slack-jenkins","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stardogventures%2Flambda-slack-jenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stardogventures%2Flambda-slack-jenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stardogventures%2Flambda-slack-jenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stardogventures%2Flambda-slack-jenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stardogventures","download_url":"https://codeload.github.com/stardogventures/lambda-slack-jenkins/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stardogventures%2Flambda-slack-jenkins/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32973313,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T06:31:55.726Z","status":"ssl_error","status_checked_at":"2026-05-13T06:31:51.336Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["aws-lambda","jenkins","slack"],"created_at":"2024-11-22T15:28:42.552Z","updated_at":"2026-05-13T07:40:59.496Z","avatar_url":"https://github.com/stardogventures.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lambda-slack-jenkins\nSimple AWS lambda function to run jenkins jobs from a Slack slash command\n\n# Setup instructions\n\n- Set up API Gateway with a POST resource that uses this body mapping template for Content-Type `application/x-www-form-urlencoded`:\n```\n{\n    \"data\": {\n        #foreach( $token in $input.path('$').split('\u0026') )\n            #set( $keyVal = $token.split('=') )\n            #set( $keyValSize = $keyVal.size() )\n            #if( $keyValSize \u003e= 1 )\n                #set( $key = $util.urlDecode($keyVal[0]) )\n                #if( $keyValSize \u003e= 2 )\n                    #set( $val = $util.urlDecode($keyVal[1]) )\n                #else\n                    #set( $val = '' )\n                #end\n                \"$key\": \"$val\"#if($foreach.hasNext),#end\n            #end\n        #end\n    }\n}\n```\n\n- Create a lambda function named `slack-jenkins` with the code from this repo\n- Use the following env variables for the lambda function:\n  - `JENKINS_TOKEN`: Jenkins token for the remote build\n  - `JENKINS_JOB_PREFIX`: Prefix to be prepended before any job name, e.g. `deploy-`\n  - `JENKINS_URL`: Base URL for your jenkins install (`https://jenkins.example.org`)\n  - `SLACK_COMMAND`: Name of the Slack slash-command, e.g. `/deploy`\n  - `SLACK_TOKEN`: Slack token from the slash command\n- Create a Slack slash-command that posts to your API gateway POST resource\n- Run your slash-command with parameters `/deploy \u003cjob\u003e \u003ctarget\u003e \u003cbranch\u003e`, the parameters `target` and `branch` will be passed in to the parameterized build on Jenkins side\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstardogventures%2Flambda-slack-jenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstardogventures%2Flambda-slack-jenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstardogventures%2Flambda-slack-jenkins/lists"}