Jenkins pipeline scm environment variables | بلاگ

Jenkins pipeline scm environment variables

تعرفه تبلیغات در سایت

آخرین مطالب

امکانات وب

Vote count: 0

I'm trying to print the SCM last Git commiter name in pipeline job. The ${CHANGE_AUTHOR} returns null. I tried to to the following:

def scmVars = checkout scm

and after that:

println scmVars

The problem is that the returned user is different. In the UI is:

Commit ********** by Nir Koren

But from the console logs GIT_COMMITTER_NAME and GIT_AUTHOR_NAME is a different user. In fact it's the technical user who created the SSH key to Github.

Any idea why it's different? Any clue how can I print the committers name before I am implementing ugly API call the the build URL?

asked 46 secs ago
Nir Koren

نویسنده : استخدام کار بازدید : 4 تاريخ : سه شنبه 2 مرداد 1397 ساعت: 22:20