{"id":15532735,"url":"https://github.com/hypery2k/jenkins-pipeline-library","last_synced_at":"2025-07-27T13:10:46.324Z","repository":{"id":142195038,"uuid":"99985603","full_name":"hypery2k/jenkins-pipeline-library","owner":"hypery2k","description":"A shared Jenkins Pipeline library","archived":false,"fork":false,"pushed_at":"2024-06-02T17:29:27.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":3,"default_branch":"develop","last_synced_at":"2025-04-23T14:47:31.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Groovy","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/hypery2k.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,"zenodo":null}},"created_at":"2017-08-11T02:57:56.000Z","updated_at":"2019-01-18T05:52:31.000Z","dependencies_parsed_at":"2025-04-17T11:53:58.737Z","dependency_job_id":null,"html_url":"https://github.com/hypery2k/jenkins-pipeline-library","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hypery2k/jenkins-pipeline-library","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fjenkins-pipeline-library","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fjenkins-pipeline-library/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fjenkins-pipeline-library/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fjenkins-pipeline-library/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypery2k","download_url":"https://codeload.github.com/hypery2k/jenkins-pipeline-library/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypery2k%2Fjenkins-pipeline-library/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267362595,"owners_count":24075149,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-02T11:32:43.534Z","updated_at":"2025-07-27T13:10:46.266Z","avatar_url":"https://github.com/hypery2k.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins Pipeline Library\n\n## Why\n\nAn Shared Library is defined with a name, a source code retrieval method such as by SCM, and optionally a default version. The name should be a short identifier as it will be used in scripts.\n\nThe version could be anything understood by that SCM; for example, branches, tags, and commit hashes all work for Git. You may also declare whether scripts need to explicitly request that library (detailed below), or if it is present by default. Furthermore, if you specify a version in Jenkins configuration, you can block scripts from selecting a different version.\n\n## Requirements\n\n* [Jenkins Pipeline Plugin](https://wiki.jenkins.io/display/JENKINS/Pipeline+Plugin)\n* [Jenkins Pipeline Utility Steps](https://github.com/jenkinsci/pipeline-utility-steps-plugin)\n\n\n## Usage\n\n### \u003ca name=\"nodejs\"\u003e\u003c/a\u003e NodeJS\n\nTo ease the support of multiple node versions\n```\n#!/usr/bin/groovy\n@Library('my-build-library')\ndef nodeJS = new de.mare.ci.jenkins.NodeJS()\n\n\nnode {\n  // npm install:\n  nodeJS.nvm('install')\n  // npm run build  \n  nodeJS.nvmRun('build')\n  // prop=abc npm run build\n  nodeJS.nvmRun('build','prop=abc')\n  // npm version -m \"...\"\n  nodeJS.nvm(\"version -m\\\"$COMMIT_MESSAGE\\\"\")\n  // npm publish\n  nodeJS.nvm(\"publish\")\n}\n\n```\n\n### \u003ca name=\"maven\"\u003e\u003c/a\u003e Maven\n```\n#!/usr/bin/groovy\n@Library('my-build-library')\ndef maven = new de.mare.ci.jenkins.Maven()\n\n\nnode {\n  echo maven.getProjectVersion()\n\n}\n\n```\n\n### \u003ca name=\"git\"\u003e\u003c/a\u003e Git\n```\n#!/usr/bin/groovy\n@Library('my-build-library')\ndef git = new de.mare.ci.jenkins.Git()\n\n\nnode {\n  if (git.isDevelopBranch()){\n\n  }\n\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypery2k%2Fjenkins-pipeline-library","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypery2k%2Fjenkins-pipeline-library","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypery2k%2Fjenkins-pipeline-library/lists"}