-
Opening Jenkins Home at url
<docker-ip>:9080
-
Open
Git_to_Gitlab
Jenkins Job. -
Click on
Build with Parameters
and enter languageJava
by default. -
Open the build (latest one,may require to refresh the page). You should see the generated jobs.
-
Open the Console output from the left side.
-
The Github API Url, cloning 3 repos and the time taken for each repo to be cloned.
-
Creating Gitlab Repo with Curl, JSON response from Gitlab API and changing the remote of the repo cloned to point to new empty Gitlab repo.
-
Push the files to local Gitlab Repo and repeat the process for other repositories.
-
Creating Jenkins Jobs with Job DSL plugin if it is a Maven Project, name of the Jenkins Jobs generated, remove the folder from Jenkins after it is pushed to Gitlab.
-
Download the issue list of the repo using Github Issues API, invoke the Redis Storage Jar which connects to Redis Database , displays the previous data and pushes the new issues list.
-
Repeat this process for all the repositories.
-
Login to Gitlab at URL
<docker-ip>:30080
withroot
user and123456789
as password. -
Open a project and see the history which is same as it was on Github.
-
Login to the Redis contianer via
docker exec -it my-redis bash
and open Redis Client via the commandredis-cli
. -
Execute the command
HGETALL "repo"
to see all the fields and values of data pushed to Redis Db via Jenkins.It shown in the order.- field1
- value1
- field2
- value2 (likewise)
-
Build the project generated in Jenkins like DSL-maven-plugins. Jacoco report shown on the right of project home page.
-
Click on the report to see the detailed result of the coverage.
-
Login to Jenkins container via
docker exec -it jenkins bash
. Navigate to/var/jenkins_home/workspace/Git_to_Gitlab/ GitRetest/
. Find different folders with namesDSL-<project_names>
. Open the folderDSL-maven- plugins
. The filemaven-plugins.csv
contains all the dependencies of the project. This csv is passed to a jar which filters based on the last files committed. Final list of dependencies found in fileoutput_changed_files.txt
. -
Open the last project build from Jenkins GUI. Open the Console Output section. Scroll down at the end and find the section of
Changed File List & Dependencies
If the .java files are present in the last commit, it will find the dependencies of that file and show it in the output.