You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What Operating System are you using (both controller, and any agents involved in the problem)?
N/A
Reproduction steps
Create a job with any parameters.
Trigger the job via a comment.
Navigate to Parameters for the Job that started.
Expected Results
You should see the existing parameters of the Job with the default values as defined in the job. (In my case it is declarative job so those are defined in Jenkinsfile)
Actual Results
The only parameters that you will see are: GITHUB_COMMENT and GITHUB_COMMENT_AUTHOR
Existing parameters have been removed.
Anything else?
ebc7956
This commit is aiming to add environment variables (commit name is: expose comments as env variables) but it instead add parameters.
The text was updated successfully, but these errors were encountered:
@pamelasarkisyan when you trigger the job via a comment your expectation is you'd have the default values for any custom parameters correct? Since there is no way to trigger the custom using a comment and also pass parameters to the job.
Jenkins and plugins versions report
When triggering the job using issueCommentTrigger all existing parameters are getting removed and only the new ones are visible.
Lines that are probably introducing this behaviour are:
https://github.com/jenkinsci/pipeline-github-plugin/blob/2.8-141.7e985db66f30/src/main/java/org/jenkinsci/plugins/pipeline/github/trigger/GitHubEventSubscriber.java#L132-L134
Environment:
Jenkins 2.361.3
Pipeline: GitHub -> Version2.8-141.7e985db66f30
What Operating System are you using (both controller, and any agents involved in the problem)?
N/A
Reproduction steps
Create a job with any parameters.
Trigger the job via a comment.
Navigate to Parameters for the Job that started.
Expected Results
You should see the existing parameters of the Job with the default values as defined in the job. (In my case it is declarative job so those are defined in Jenkinsfile)
Actual Results
The only parameters that you will see are:
GITHUB_COMMENT
andGITHUB_COMMENT_AUTHOR
Existing parameters have been removed.
Anything else?
ebc7956
This commit is aiming to add environment variables (commit name is: expose comments as env variables) but it instead add parameters.
The text was updated successfully, but these errors were encountered: