jenkinsci / jenkinsci/workflow-aggregator-plugin

[JENKINS-46647] Unable to change from "Build with parameters" to "Build Now"

Open
#809 3 comments 0 reactions 0 assignees View on GitHub
component:build-with-parameters-plugin component:pipeline component:workflow-multibranch-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
No language data
Stars
225
Forks
125
PR merge metrics
No merged PRs in 30d

Description

How to reproduce:



  1. Configure Multibranch project with jenkinsfile and a pom.xml that should contain a version block. First build should run sucessfull.

  2. Comment jenkins properties code block and commit changes.

  3. Manual trigger "Scan Branch Pipeline Now"

  4. "Build with Parameters" still present on left menu. "Build Now" should appear instead.

Jenkinsfile:

 

node('master'){

checkout scm

// Read POM
def pomModel = readMavenPom file: 'pom.xml'
def pomVersion = pomModel.version

properties([parameters([string(defaultValue: "${pomVersion}", description: 'Stage Information', name: 'versioninfo'),
string(defaultValue: 'My 1st Default Stage information', description: 'Stage Information', name: 'firststageinfo'),
string(defaultValue: 'My 2nd Default Stage information', description: 'Stage Information', name: 'secondstageinfo'),
string(defaultValue: 'My 3rd Default Stage information', description: 'Stage Information', name: 'thirdstageinfo')]),
pipelineTriggers([])])

echo pomVersion
echo params.firststageinfo
echo params.thirdstageinfo
}


 

pom.xml

"1.0" encoding="UTF-8"?>

"http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0

com.example
artifact-example
0.0.1-SNAPSHOT

---
Originally reported by ncosta, imported from: Unable to change from "Build with parameters" to "Build Now"


  • status: Open
  • priority: Minor
  • component(s): build-with-parameters-plugin, pipeline, workflow-multibranch-plugin
  • resolution: Unresolved
  • votes: 2
  • watchers: 2
  • imported: 2025-12-08

Raw content of original issue

How to reproduce:



  1. Configure Multibranch project with jenkinsfile and a pom.xml that should contain a version block. First build should run sucessfull.

  2. Comment jenkins properties code block and commit changes.

  3. Manual trigger "Scan Branch Pipeline Now"

  4. "Build with Parameters" still present on left menu. "Build Now" should appear instead.

Jenkinsfile:
 



node('master'){

checkout scm

// Read POM
def pomModel = readMavenPom file: 'pom.xml'
def pomVersion = pomModel.version

properties([parameters([string(defaultValue: "${pomVersion}", description: 'Stage Information', name: 'versioninfo'),
string(defaultValue: 'My 1st Default Stage information', description: 'Stage Information', name: 'firststageinfo'),
string(defaultValue: 'My 2nd Default Stage information', description: 'Stage Information', name: 'secondstageinfo'),
string(defaultValue: 'My 3rd Default Stage information', description: 'Stage Information', name: 'thirdstageinfo')]),
pipelineTriggers([])])

echo pomVersion
echo params.firststageinfo
echo params.thirdstageinfo
}



 
pom.xml


<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.example</groupId>
<artifactId>artifact-example</artifactId>
<version>0.0.1-SNAPSHOT</version>

</project>


  • environment: Jenkins 2.76

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.