{"id":20678499,"url":"https://github.com/codecentric/job-dsl-promotions-plugin","last_synced_at":"2025-03-10T19:25:56.499Z","repository":{"id":144965199,"uuid":"39581208","full_name":"codecentric/job-dsl-promotions-plugin","owner":"codecentric","description":"Extension point for \"JobDSL Plugin\" that extends it with \"Promoted Builds Plugin\" features","archived":false,"fork":false,"pushed_at":"2016-01-14T09:51:29.000Z","size":68,"stargazers_count":14,"open_issues_count":0,"forks_count":7,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-01-17T15:16:34.005Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"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/codecentric.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}},"created_at":"2015-07-23T17:26:45.000Z","updated_at":"2019-01-29T19:00:45.000Z","dependencies_parsed_at":"2023-04-18T05:24:10.802Z","dependency_job_id":null,"html_url":"https://github.com/codecentric/job-dsl-promotions-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fjob-dsl-promotions-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fjob-dsl-promotions-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fjob-dsl-promotions-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecentric%2Fjob-dsl-promotions-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecentric","download_url":"https://codeload.github.com/codecentric/job-dsl-promotions-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242911136,"owners_count":20205442,"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":[],"created_at":"2024-11-16T21:20:19.933Z","updated_at":"2025-03-10T19:25:56.471Z","avatar_url":"https://github.com/codecentric.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Promototed Builds Plugin Extension for the Jenkins Job DSL Plugin\n\nThis plugin is an extension for the existing [Job DSL Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Job+DSL+Plugin). With this extension it is possible to generate promotions with the Job DSL. See the [Promoted Builds Plugin](https://wiki.jenkins-ci.org/display/JENKINS/Promoted+Builds+Plugin) for further informations about the meaning of Promotions for a Jenkins Job.\n\n## Build\n\nmvn clean install\n\n## Run\n\nmvn hpi:run\n\n## Usage\n\n### Simple example\n\n```groovy\njob('promotion-job'){\n\tproperties{\n\t\tpromotions{\n\t\t\tpromotion {\n                name('dev')\n                icon('star-gold')\n                conditions {\n                    manual('developer')\n                }\n                actions {\n                    shell('echo hallo;')\n                }\n            }\n\t\t}\n\t}\n}\n```\n\n### More complex example\n\n```groovy\njob('complex-promotion-job'){\n\tproperties{\n\t\tpromotions{\n\t\t\tpromotion {\n\t\t\t    name('prod')\n\t\t\t\ticon('star-green')\n\t\t\t\tconditions {\n\t\t\t\t\tmanual('changemanager')\n\t\t\t\t}\n\t\t\t\tactions {\n\t\t\t\t\tdownstreamParameterized {\n\t\t\t\t\t\ttrigger(\"deploy-job\",\"SUCCESS\",false,[\"buildStepFailure\": \"FAILURE\",\"failure\":\"FAILURE\",\"unstable\":\"UNSTABLE\"]) {\n\t\t\t\t\t\t\tpredefinedProp(\"JOB_NAME\", \"\\${PROMOTED_JOB_FULL_NAME}\")\n\t\t\t\t\t\t\tpredefinedProp(\"BUILD_ID\",\"\\${PROMOTED_NUMBER}\")\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tmaven {\n\t\t\t\t\t\tmavenInstallation(\"Maven 3.0.4\")\n\t\t\t\t\t\tgoals(\"build-helper:parse-version versions:set versions:commit scm:checkin\")\n\t\t\t\t\t\tproperty(\"newVersion\", \"\\${parsedVersion.majorVersion}.\\${parsedVersion.minorVersion}.\\${parsedVersion.nextIncrementalVersion}-SNAPSHOT\")\n\t\t\t\t\t\tproperty(\"connectionUrl\", \"scm:svn:http:/svn.codecentric.de}/test-project\")\n\t\t\t\t\t\tproperty(\"message\", \"Automatic increment version after release\")\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecentric%2Fjob-dsl-promotions-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecentric%2Fjob-dsl-promotions-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecentric%2Fjob-dsl-promotions-plugin/lists"}