You can grab the current value of job's progress via powerful API:
simply use http request:
http://<host>/job/<jobname>/lastBuild/api/json?tree=executor[progress]
When job is not running, answer will be null
:
{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowRun","executor":null}
When job is running, the value will be in progress
parameter:
{"_class":"org.jenkinsci.plugins.workflow.job.WorkflowRun","executor":
{"_class":"hudson.model.OneOffExecutor","progress":18}}
"progress":18 means 18% of completeness
See relevant question here: how to get progress bar data for a running jenkins job through the API
To see all opportunities of API, just add /api/
in the link of any of your job:
http://<host>/job/<jobname>/api/