question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there a way to retrieve payload user name at pipeline run?

See original GitHub issue

Your checklist for this issue

  • Jenkins version 2.249.1 and above

  • Plugin version 2.9.2

  • Bitbucket cloud

  • Bitbucket server and version v6.10.2 and v7.6.0

Description

Is there a way to retrieve payload user name at pipeline run? At the moment the following variables are not set:

  • CHANGE_AUTHOR
  • CHANGE_ID
  • CHANGE_AUTHOR_DISPLAY_NAME
  • CHANGE_AUTHOR_EMAIL

Any hint on how to retrieve the user who initiated the change?

Thanks

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:23 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
robross0606commented, Jul 16, 2021

Hi, you can use my fork for this: https://github.com/oleh-ozimok/bitbucket-branch-source-plugin/tree/bitbucket-payload-in-job

println(currentBuild.getBuildCauses('com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookCause'))

Is there any plan to PR this fork back into the mainline?

2reactions
oleh-ozimokcommented, Jun 8, 2021

Hi, you can use my fork for this: https://github.com/oleh-ozimok/bitbucket-branch-source-plugin/tree/bitbucket-payload-in-job

println(currentBuild.getBuildCauses('com.cloudbees.jenkins.plugins.bitbucket.hooks.WebhookCause'))

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pipeline Runs - Get - REST API (Azure Data Factory)
Learn more about Data Factory service - Get a pipeline run by its run ID.
Read more >
Using a Jenkinsfile
Since the Jenkinsfile is being pulled directly from source control, Pipeline provides a quick and easy way to access the right revision of...
Read more >
Pipelines API - GitLab Docs
Get a single pipeline ; id, integer/string, yes, The ID or URL-encoded path of the project owned by the authenticated user ; pipeline_id,...
Read more >
Contexts - GitHub Docs
In order to use property dereference syntax, the property name must start with ... Once the job is running, you can also retrieve...
Read more >
PipelineRuns - Tekton
You can execute the Pipeline in your PipelineRun with a specific set of credentials by specifying a ServiceAccount object name in the serviceAccountName...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found