jenkinsci / jenkinsci/gitlab-branch-source-plugin

[JENKINS-59882] User can't set parameters when starting newly-discovered parameterized job

Open
#649 3 comments 0 reactions 0 assignees View on GitHub
component:gitlab-branch-source-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

Description

The parameters can be set only on second (and subsequent) builds).

Steps to reproduce :



  • have a gitlab project with a Jenkinsfile that needs parameters (see https://jenkins.io/doc/book/pipeline/jenkinsfile/#handling-parameters)

  • create a gitlab group that can scan this project (with no automatic build)

  • go to the project page in the jenkins UI : there is a link "Start a build", that does what it says, without letting the user pass any parameters

Expected behavior : the link should be "Start a build with parameters", and should let the user give the parameters

Workaround : start a first build, and interrupt it after the git checkout. Then the link correctly becomes "Start a build with parameters"

---
Originally reported by mossroy, imported from: User can't set parameters when starting newly-discovered parameterized job


  • assignee: baymac
  • status: Open
  • priority: Minor
  • component(s): gitlab-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251216-182730

Raw content of original issue

The parameters can be set only on second (and subsequent) builds).

Steps to reproduce :



  • have a gitlab project with a Jenkinsfile that needs parameters (see https://jenkins.io/doc/book/pipeline/jenkinsfile/#handling-parameters)

  • create a gitlab group that can scan this project (with no automatic build)

  • go to the project page in the jenkins UI : there is a link "Start a build", that does what it says, without letting the user pass any parameters

Expected behavior : the link should be "Start a build with parameters", and should let the user give the parameters

Workaround : start a first build, and interrupt it after the git checkout. Then the link correctly becomes "Start a build with parameters"

  • environment: Jenkins 2.176.3 on java 1.8, gitlab-branch-source-plugin 1.4.0, gitlab 12.3.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.