Jenkins pipeline scm environment variables

ساخت وبلاگ
چکیده : Vote count: 0 I'm trying to print the ... با عنوان : 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

back soft...
ما را در سایت back soft دنبال می کنید

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