'Read Pom Versions using git utils or git commands for a list of repositories

Problem Statement : I have a list of repositories in a file belonging to the same GitHub Organization. Using Jenkins Pipeline I have to go through the list of them all. I have already fetched the master commit Hash, but I want to fetch the pom version of everyone of them and store it in a file.

The scripts has to be run via Jenkins file pipeline.

I am not getting any links or any understanding of any commands that I can use.

Jenkins with Maven requires every project to be built for it to create a workspace in Jenkins. We do not want to do that.

What we have tried : We tried the git ls-remote command. But it was with limited results.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source