{"id":19032749,"url":"https://github.com/joutvhu/jenkins-training","last_synced_at":"2026-05-18T03:34:32.367Z","repository":{"id":181637576,"uuid":"666743571","full_name":"joutvhu/jenkins-training","owner":"joutvhu","description":"Jenkins Training","archived":false,"fork":false,"pushed_at":"2023-08-08T14:01:21.000Z","size":1139,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-27T06:47:06.331Z","etag":null,"topics":["gitlab","jenkins","jenkinsfile","pipeline","training"],"latest_commit_sha":null,"homepage":"","language":null,"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/joutvhu.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}},"created_at":"2023-07-15T12:34:03.000Z","updated_at":"2023-07-16T14:09:26.000Z","dependencies_parsed_at":"2024-11-08T21:31:23.609Z","dependency_job_id":"eada460e-cf36-46a7-ac94-f4f1ca52664a","html_url":"https://github.com/joutvhu/jenkins-training","commit_stats":null,"previous_names":["joutvhu/jenkins-training"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/joutvhu/jenkins-training","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fjenkins-training","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fjenkins-training/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fjenkins-training/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fjenkins-training/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/jenkins-training/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fjenkins-training/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33163763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["gitlab","jenkins","jenkinsfile","pipeline","training"],"created_at":"2024-11-08T21:30:48.792Z","updated_at":"2026-05-18T03:34:32.352Z","avatar_url":"https://github.com/joutvhu.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jenkins Training\n\nRun the following commands to create containers.\n\n```\ndocker network create jenkins\n\ndocker run --name jenkins -p 50000:50000 -p 58080:8080 --network jenkins jenkins/jenkins\n\ndocker run --name gitlab -p 5022:22 -p 5443:443 -p 5080:80 --network jenkins gitlab/gitlab-ce\n```\n\n### Jenkins Admin Password\n\n- Find in file `/var/jenkins_home/secrets/initialAdminPassword`\n\n### Gitlab Admin User\n\n- Username: `root`\n- Password in file: `/etc/gitlab/initial_root_password`\n\n### Jenkins Setting\n\n- Install Gitlab plugin\n\n- Install tools (JDK, Maven): `Manage Jenkins` -\u003e `Tools` : Select `Install automatically`\n\n![image](doc/Screenshot%202023-07-16%20010405.png)\n\n![image](doc/Screenshot%202023-07-16%20010525.png)\n\n- Create SSH key. Open terminal in container and create a SSH key.\n\n![image](doc/Screenshot%202023-07-16%20011323.png)\n\n### GitLab Setting\n\n- Get SSH public key from Jenkins and add to Gitlab.\n\n- GitLab settings Admin -\u003e `Settings` -\u003e `Network` -\u003e `Outbound Requests` -\u003e `Allow requests to the local network from hooks and services.`\n\n### Create Gitlab Project\n\n- Create a repository with name `demo`\n\n- Open the repository -\u003e `Settings` -\u003e `Integrations` -\u003e `Jenkins`\n\n  - Jenkins server URL: `http://jenkins.jenkins:8080`\n\n  - Enable SSL verification: disable.\n\n  - Select events.\n\n![image](doc/Screenshot%202023-07-16%20010734.png)\n\n- If you use Github then use `Webhook` instead of `Integration` (`Settings` -\u003e `Webhooks` -\u003e `Add webhook`)\n\n### Create Jenkins Pipeline Project\n\n- Create a Pipeline project with name `demo`\n\n- Enable _\"Build when a change is pushed to GitLab. GitLab webhook URL: http://localhost:58080/project/demo\"_\n\n  - Select events.\n\n![image](doc/Screenshot%202023-07-16%20010615.png)\n\n- Add repository link, example `git@gitlab.jenkins:root/demo.git`\n\n![image](doc/Screenshot%202023-07-16%20010649.png)\n\n## More Config\n\n- [Sonarqube](./sonar)\n- [Multibranch Pipeline](./multibranch)\n- [Update GitLab Build Status](./gitlab-build-status)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fjenkins-training","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fjenkins-training","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fjenkins-training/lists"}