Is there a way to retrieve payload user name at pipeline run?
See original GitHub issueYour 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:
- Created 3 years ago
- Comments:23 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Is there any plan to PR this fork back into the mainline?
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'))