github-integration-plugin icon indicating copy to clipboard operation
github-integration-plugin copied to clipboard

MultiBranch Pipeline - Rebuilds doesnt have Environment variables such as GITHUB_REPO_GIT_URL

Open jaisonpjohn opened this issue 6 years ago • 5 comments

MultiBranch Pipeline - Rebuilds doesn't have Environment variables such as GITHUB_REPO_GIT_URL. It leads to NPE when I am doing groovy operations such as GITHUB_REPO_GIT_URL.replace() @KostyaSha When you get a chance please^

jaisonpjohn avatar Jul 31 '19 19:07 jaisonpjohn

Could you share more details? What kind of rebuilds? Button on UI?

KostyaSha avatar Jul 31 '19 19:07 KostyaSha

yes, "Button on UI" Tried redelivering the Github hook. That time, it didnot trigger a Job as it didnot detect any SHA change

jaisonpjohn avatar Jul 31 '19 20:07 jaisonpjohn

yes, "Button on UI" Tried redelivering the Github hook. That time, it didn't trigger a Job as it didn't detect any SHA change

trigger internally saves state, so hook wouldn't re-trigger build.

KostyaSha avatar Aug 02 '19 20:08 KostyaSha

trigger internally saves state, so hook wouldn't re-trigger build.

In that case, Can we save the Environment variables as well, so that we can rebuild using the "button on UI"

jaisonpjohn avatar Aug 05 '19 17:08 jaisonpjohn

May be related to https://github.com/KostyaSha/github-integration-plugin/commit/e8d26375affdcd516b8590f377b8f214d8ba8f56

KostyaSha avatar Aug 23 '19 13:08 KostyaSha