franiglesias / versiontag

Bash command to automate tag semantic versioning
MIT License
46 stars 13 forks source link

Use Jenkins build number #19

Open franiglesias opened 5 years ago

franiglesias commented 5 years ago

This URL pattern returns the last build number for a jenkins job. We need authenticated access to reach it.

http://{jenkins-url-job}/lastBuild/buildNumber

pkristian commented 5 years ago

I do not have knowledge of jenkins and its processes, so i hope someone will drop by to answer :)

franiglesias commented 5 years ago

Same. I've been looking at this thing and found the URL to get the information, but I need more research on the auth thing.

There are also some things to consider:

This thing is asking for a 3.x.x version :rofl:

franiglesias commented 5 years ago

Another resource

https://stackoverflow.com/questions/10698419/how-can-a-jenkins-user-authentication-details-be-passed-to-a-script-which-uses