{"id":22735490,"url":"https://github.com/francomelandri/testing-jenkins","last_synced_at":"2026-05-03T02:45:16.638Z","repository":{"id":87974819,"uuid":"169700163","full_name":"FrancoMelandri/testing-jenkins","owner":"FrancoMelandri","description":"TDD approach for Jenkins pipelines","archived":false,"fork":false,"pushed_at":"2019-02-22T10:10:59.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-05T04:51:17.714Z","etag":null,"topics":["groovy","jenkins","tdd"],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/FrancoMelandri.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":"2019-02-08T07:40:15.000Z","updated_at":"2022-04-04T19:36:00.000Z","dependencies_parsed_at":"2023-05-22T04:30:35.879Z","dependency_job_id":null,"html_url":"https://github.com/FrancoMelandri/testing-jenkins","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/FrancoMelandri%2Ftesting-jenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Ftesting-jenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Ftesting-jenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FrancoMelandri%2Ftesting-jenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FrancoMelandri","download_url":"https://codeload.github.com/FrancoMelandri/testing-jenkins/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246267773,"owners_count":20750003,"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":["groovy","jenkins","tdd"],"created_at":"2024-12-10T21:10:52.363Z","updated_at":"2026-05-03T02:45:11.617Z","avatar_url":"https://github.com/FrancoMelandri.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testing-jenkins\n\n\n\n### What is\n\nThe aim of this repository is to show how you can build your Jenkins pipeline library using a TDD approach. This can help you during development in order to speed up your code. \n\nIn addition you are able also to verify the code syntax due the fact the project will be build before running test. \n\nAll the code in the pipeline use groovy language\n\nYou have to install maven in order to run the test locally\n\n\n\n------\n\n\n### How to use\n\nTo launch the test in local environment\n\n```\n\u003e nvm clean test\n```\n\n\n\nIf you want to test locally the pipeline test you can run a docker container and then configure jenkins application\n\n```\n\u003e docker run \\\n    --rm \\\n    -u root \\\n    -p 8080:8080 \\\n    -v jenkins-data:/var/jenkins_home \\\n    -v /var/run/docker.sock:/var/run/docker.sock \\\n    -v \"$HOME\":/home \\\n    jenkinsci/blueocean\n```\n\nGoto https://localhost:8080 finish the Jenkins setup wizard and setup the Jobs.\n\nFirst of all you have to configure a **Global Library** called *testing-jenkins* pointing to the https://github.com/FrancoMelandri/testing-jenkins git repo.\n\nYou can define two different Jobs\n\n- **Run** as a pipeline Job that launch the *Jenkinsfile*\n- **Build** as a pipeline Job that launche the *Jenkinsfile.c*i to ensure the library compile and build\n\n\n\n------\n\n\n### Additional info\n\nHow to build a Jenkins pipeline library\n\nhttps://jenkins.io/doc/book/pipeline/shared-libraries/#global-shared-libraries\n\nBase test library for Jenkins pipeline code\n\nhttps://github.com/jenkinsci/JenkinsPipelineUnit\n\n\nHow to launch Jenkins locally and build using maven\n\nhttps://jenkins.io/doc/tutorials/build-a-java-app-with-maven/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancomelandri%2Ftesting-jenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrancomelandri%2Ftesting-jenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrancomelandri%2Ftesting-jenkins/lists"}