{"id":21303084,"url":"https://github.com/bzon/openshift-sample-jenkinsci","last_synced_at":"2025-03-15T18:45:54.793Z","repository":{"id":141940553,"uuid":"66070688","full_name":"bzon/openshift-sample-jenkinsci","owner":"bzon","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-16T13:44:53.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T08:28:31.337Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bzon.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-08-19T09:28:37.000Z","updated_at":"2018-03-16T07:46:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f87f7ed8-c234-434d-9b5c-d40b89f3d491","html_url":"https://github.com/bzon/openshift-sample-jenkinsci","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/bzon%2Fopenshift-sample-jenkinsci","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bzon%2Fopenshift-sample-jenkinsci/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bzon%2Fopenshift-sample-jenkinsci/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bzon%2Fopenshift-sample-jenkinsci/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bzon","download_url":"https://codeload.github.com/bzon/openshift-sample-jenkinsci/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243776696,"owners_count":20346353,"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-21T15:58:51.603Z","updated_at":"2025-03-15T18:45:54.786Z","avatar_url":"https://github.com/bzon.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openshift-sample-jenkinsci\n\n# Pre-requisite:\n\n- Ensure that you have properly configured the Gitlab connnection in \"Managed Jenkins\" named the Gitlab Connection as \"ADOP Gitlab\".  \n- Ensure that the spring-petclinic project is pushed in Gitlab.  \n\n# SCM Checkout Style for different scenarios\n\n- Checkout from Merge Request and merge with Master\n```bash\ncheckout changelog: true, poll: true, scm: [$class: 'GitSCM', branches: [[name: \"origin/${env.gitlabSourceBranch}\"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'PreBuildMerge', options: [fastForwardMode: 'FF', mergeRemote: 'origin', mergeStrategy: 'default', mergeTarget: \"${env.gitlabTargetBranch}\"]]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'adop-jenkins-master', name: 'origin', url: \"${scmURL}\"]]]\n```\n\n- Checkout from Push and merge with Master\n```bash\ncheckout changelog: true, poll: true, scm: [$class: 'GitSCM', branches: [[name: \"origin/${env.gitlabSourceBranch}\"]], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'PreBuildMerge', options: [fastForwardMode: 'FF', mergeRemote: 'origin', mergeStrategy: 'default', mergeTarget: \"master\"]]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'adop-jenkins-master', name: 'origin', url: \"${scmURL}\"]]]\n```\n\n- Checkout from Push\n```bash\ncheckout([$class: 'GitSCM', branches: [[name: 'origin/${gitlabSourceBranch}']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'adop-jenkins-master', name: 'origin', refspec: '+refs/heads/*:refs/remotes/origin/* ', url: \"${scmURL}\" ]]])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbzon%2Fopenshift-sample-jenkinsci","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbzon%2Fopenshift-sample-jenkinsci","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbzon%2Fopenshift-sample-jenkinsci/lists"}