Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pipeline syntax snippet generator fails with badge 2.1 #198

Closed
MarkEWaite opened this issue Oct 5, 2024 · 1 comment · Fixed by #199
Closed

Pipeline syntax snippet generator fails with badge 2.1 #198

MarkEWaite opened this issue Oct 5, 2024 · 1 comment · Fixed by #199
Assignees
Labels
bug Something isn't working documentation Documentation improvements

Comments

@MarkEWaite
Copy link
Contributor

MarkEWaite commented Oct 5, 2024

Jenkins and plugins versions report

Environment
Jenkins: 2.479
OS: Linux - 6.10.9-amd64
Java: 21.0.4 - Eclipse Adoptium (OpenJDK 64-Bit Server VM)
---
antisamy-markup-formatter:162.v0e6ec0fcfcf6
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
asm-api:9.7-33.v4d23ef79fcc8
badge:2.1
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
branch-api:2.1178.v969d9eb_c728e
caffeine-api:3.1.8-133.v17b_1ff2e0599
cloudbees-folder:6.955.v81e2a_35c08d3
credentials:1381.v2c3a_12074da_b_
credentials-binding:681.vf91669a_32e45
display-url-api:2.204.vf6fddd8a_8b_e9
durable-task:577.v2a_8a_4b_7c0247
git:5.5.2
git-client:6.0.0
gson-api:2.11.0-41.v019fcf6125dc
instance-identity:201.vd2a_b_5a_468a_a_6
ionicons-api:74.v93d5eb_813d5f
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javax-activation-api:1.2.0-7
jaxb:2.3.9-1
joda-time-api:2.13.0-85.vb_64d1c2921f1
json-api:20240303-41.v94e11e6de726
mailer:488.v0c9639c1a_eb_3
metrics:4.2.21-451.vd51df8df52ec
mina-sshd-api-common:2.14.0-133.vcc091215a_358
mina-sshd-api-core:2.14.0-133.vcc091215a_358
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-graph-analysis:216.vfd8b_ece330ca_
pipeline-graph-view:349.veda_b_e2366d99
pipeline-groovy-lib:730.ve57b_34648c63
pipeline-input-step:495.ve9c153f6067b_
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2214.vb_b_34b_2ea_9b_83
pipeline-model-definition:2.2214.vb_b_34b_2ea_9b_83
pipeline-model-extensions:2.2214.vb_b_34b_2ea_9b_83
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2214.vb_b_34b_2ea_9b_83
plain-credentials:183.va_de8f1dd5a_2b_
scm-api:696.v778d637b_a_762
script-security:1362.v67dc1f0e1b_b_3
snakeyaml-api:2.3-123.v13484c65210a_
ssh-credentials:343.v884f71d78167
structs:338.v848422169819
variant:60.v7290fc0eb_b_cd
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1336.vee415d95c521
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:3969.vdc9d3a_efcc6a_
workflow-durable-task-step:1371.vb_7cec8f3b_95e
workflow-job:1441.vb_2d416905b_35
workflow-multibranch:795.ve0cb_1f45ca_9a_
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476
workflow-support:926.v9f4f9b_b_98c19  

What Operating System are you using (both controller, and any agents involved in the problem)?

Debian testing as started from the script:

#!/bin/bash
JENKINS_WAR_VERSION=2.479
JENKINS_WAR=jenkins-${JENKINS_WAR_VERSION}.war
PLUGIN_MANAGER_VERSION=2.13.0
PLUGIN_MANAGER_JAR=jenkins-plugin-manager-${PLUGIN_MANAGER_VERSION}.jar

if [ ! -f ../$PLUGIN_MANAGER_JAR ]; then
  wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/${PLUGIN_MANAGER_VERSION}/$PLUGIN_MANAGER_JAR
  mv $PLUGIN_MANAGER_JAR ..
fi
if [ ! -d plugins ]; then
  mkdir plugins
fi
java -jar ../$PLUGIN_MANAGER_JAR --jenkins-version $JENKINS_WAR_VERSION --latest false --plugin-download-directory plugins --plugin-file plugins.txt

if [ ! -f ../$JENKINS_WAR ]; then
  wget https://get.jenkins.io/war/${JENKINS_WAR_VERSION}/jenkins.war
  mv jenkins*.war ../$JENKINS_WAR
fi

JENKINS_HOME=. java -jar ../$JENKINS_WAR

Using the plugins.txt file based on the list of plugins included earlier in the issue report

Reproduction steps

  1. Run the shell script that download Jenkins 2.479 and the related plugins
  2. Complete the setup wizard from a web browser by creating a new user and choosing to install no additional plugins
  3. Create a Pipeline job and open the Pipeline Syntax Snippet Generator link (as described in this video)
  4. Generate Pipeline syntax for the addInfoBadge Pipeline step and other Pipeline steps from the badge plugin. Error messages will be reported to the console log

Those error messages are not reported with badge plugin 1.13.

Expected Results

Pipeline syntax snippet generator should provide a working snippet for the user

Actual Results

Pipeline syntax snippet generator reports an error and stack trace is written to the Jenkins console log

Anything else?

No response

Are you interested in contributing a fix?

Unfortunately, I'm not available to help with this one.

@strangelookingnerd
Copy link
Contributor

Released in 2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Documentation improvements
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants