{"id":15575321,"url":"https://github.com/vickumar1981/jenkins-scala-dsl","last_synced_at":"2026-04-14T12:33:20.465Z","repository":{"id":78377694,"uuid":"67446788","full_name":"vickumar1981/jenkins-scala-dsl","owner":"vickumar1981","description":"A DSL for the jenkins REST api written in Scala.","archived":false,"fork":false,"pushed_at":"2016-10-05T14:34:55.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-19T07:42:35.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","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/vickumar1981.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":"2016-09-05T19:45:46.000Z","updated_at":"2017-12-12T05:36:15.000Z","dependencies_parsed_at":"2023-03-12T04:14:44.237Z","dependency_job_id":null,"html_url":"https://github.com/vickumar1981/jenkins-scala-dsl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fjenkins-scala-dsl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fjenkins-scala-dsl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fjenkins-scala-dsl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vickumar1981%2Fjenkins-scala-dsl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vickumar1981","download_url":"https://codeload.github.com/vickumar1981/jenkins-scala-dsl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243234135,"owners_count":20258397,"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-10-02T18:29:04.243Z","updated_at":"2025-12-25T12:19:14.080Z","avatar_url":"https://github.com/vickumar1981.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jenkins-scala-dsl #\n\nA Scala DSL wrapper for the Jenkins REST Api.\n\n### What can I do? ###\n\n* Quickly iterate over jenkins jobs and get information or execute a task\n```\nimport com.jenkins.sync.dsl.jenkins\nimport com.jenkins.sync.dsl.JobConversions._\nimport com.jenkins.sync.util._\n\nobject Main {\n  def main(args: Array[String]) {\n    JenkinsHelperConfig.loadConfig(\"testConfig.conf\")\n    jenkins.jobs().foreach { j =\u003e println(j.name) }\n  }\n}\n```\n* Apply a function to each Job\n```\nimport com.jenkins.sync.dsl.jenkins\nimport com.jenkins.sync.dsl.JobConversions._\nimport com.jenkins.sync.util._\n\nobject Main {\n  def main(args: Array[String]) {\n    JenkinsHelperConfig.loadConfig(\"testConfig.conf\")\n    for (j \u003c- jenkins.jobs()) {\n        // Currently, the only two things you can do with a job\n        j.workspace.clean()\n        j.xml.checkGitUrls()\n    }\n  }\n}\n```\n\n### How do I get set up? ###\n\n* Add a `project/Build.scala` which contains the following:\n```\nimport sbt._\nimport Keys._\n\nobject MyBuild extends Build {\n  lazy val myProject = Project(\n    id=\"my-project\",\n    base=file(\".\")) settings(\n    name := \"my-project\",\n    mainClass:= Some(\"Main\")\n    ) dependsOn(jenkinsDslProject)\n\n  lazy val jenkinsDslProject =\n    RootProject(uri(\"git://github.com/vickumar1981/jenkins-scala-dsl.git\"))\n\n}\n```\n* Add a configuration file like the sample below (This is the file you load with the JenkinsHelperConfig):\n```\njenkins {\n  credentials {\n    user = \"\"\n    token = \"\"\n  }\n  url = \"http://localhost:8081\"\n}\n\ngithub {\n  url = \"\"\n  organizations {\n    whitelist = [ ]\n  }\n  emails = [ ]\n}\n\nmail {\n  smtp {\n    auth = true\n    host = \"smtp.gmail.com\"\n    port = 587\n    user = \"\"\n    from = \"\"\n    password = \"\"\n    starttls {\n      enable = true\n    }\n  }\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickumar1981%2Fjenkins-scala-dsl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvickumar1981%2Fjenkins-scala-dsl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvickumar1981%2Fjenkins-scala-dsl/lists"}