{"id":25339880,"url":"https://github.com/eroydev/student-registry-jenkins","last_synced_at":"2025-10-25T03:03:58.473Z","repository":{"id":276934826,"uuid":"930783079","full_name":"ERoydev/Student-Registry-Jenkins","owner":"ERoydev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-19T10:29:37.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-19T11:29:07.878Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/ERoydev.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":"2025-02-11T07:51:02.000Z","updated_at":"2025-02-19T10:29:40.000Z","dependencies_parsed_at":"2025-02-11T08:53:51.531Z","dependency_job_id":null,"html_url":"https://github.com/ERoydev/Student-Registry-Jenkins","commit_stats":null,"previous_names":["eroydev/student-registry-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FStudent-Registry-Jenkins","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FStudent-Registry-Jenkins/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FStudent-Registry-Jenkins/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERoydev%2FStudent-Registry-Jenkins/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ERoydev","download_url":"https://codeload.github.com/ERoydev/Student-Registry-Jenkins/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247833358,"owners_count":21003750,"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":"2025-02-14T07:43:19.301Z","updated_at":"2025-10-25T03:03:58.415Z","avatar_url":"https://github.com/ERoydev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Student-Registry-App\r\n\r\n\r\n# Used to practice Jenkins\r\n\r\n## Jenkins Notes:\r\n\r\n1. In order to setup CI proccess with jenkins and to start my jobs on jenkins everytime i commit in my github repo i need:\r\n    - To create in Github webhook which is going to allow external services to be allowed when event happens in my git repo\r\n\r\n    ```ru\r\n        http://localhost:8080/ =\u003e is tipically my default jenkins url. (change if u have another one)\r\n        PAYLOAD_URL = http://localhost:8080/github-webhook/\r\n        Content Type = application/json\r\n        Secret = Optionally, secret token for additional security\r\n\r\n    ```\r\n\r\n2. Since my jenkis is running locally i cannot create webhook with local host since github cannot access private network.\r\n    - use additionaly software named **ngrock**\r\n    - It downloads ngrock.exe file which opens my terminal and there i nee to run\r\n    ```bash\r\n        ngrok http 8080\r\n    ```\r\n    - On the Forwarding =\u003e I have url link which is redirecting to my jenkins. I am going to use it as PAYLOAD_URL for git webhook\r\n    ```ru\r\n        PAYLOAD_URL = https://ac63-77-78-30-58.ngrok-free.app/github-webhook/\r\n        Content Type = application/json\r\n        Secret = Optionally, secret token for additional security\r\n\r\n    ```\r\n\r\n3. In my jenkins i need on my Job =\u003e Configure to set Triggers to **GitHub hook trigger for GITScm polling** =\u003e Active\r\n\r\n4. Have in mind if you are testing .Net apps you should install MSBuild and .NET SDK SUPPORT plugins inside jenkins\r\n\r\n5. I solve the problem of dotnet not found in jenkins with these commands:\r\n\r\n5.1 First i enter into docker into my terminal\r\n```bash\r\n    docker exec -u root -it myjenkins bash\r\n```\r\n5.2 I install dotnet\r\n```bash\r\n    apt-get update\r\n    apt-get install -y wget apt-transport-https software-properties-common\r\n    wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb\r\n    dpkg -i packages-microsoft-prod.deb\r\n    apt-get update\r\n    apt-get install -y dotnet-sdk-6.0\r\n```\r\n\r\n## Errors:\r\n\r\n1. If error occurs.\r\n    - I can check in Manage Jenkins =\u003e System Log - to see if jenkins has received POST request from Github webhook\r\n    - If it does likely my issue is somewhere from Configuration of the Job \r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feroydev%2Fstudent-registry-jenkins","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feroydev%2Fstudent-registry-jenkins","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feroydev%2Fstudent-registry-jenkins/lists"}