Open walvekarnikhil opened 9 months ago
+1 on this bug. We ran into the exact same issue with same logs as OP.
Jenkins Version 2.426.3 Plugin Version 2.0.12
Perhaps something to do with the JSON payload? There seems to be an empty string key to represent the checkboxes.
This is the JSON payload that I observed in chrome devtools when the request is submitted. I added dummy regex values when I checked "send build data automatically" and "send deployment data automatically".
{
"sites": {
"site": "<redact>.atlassian.net",
"webhookUrl": "https://<redact>",
"includeUser": "false",
"credentialsId": "<redact>",
"active": "true"
},
"": [
{
"autoBuildsRegex": "adbbb"
},
{
"autoDeploymentsRegex": "adddd"
},
true
],
"Submit": "",
"Jenkins-Crumb": "<redact>"
}
This is the corresponding POST data
site: <redact>.atlassian.net
webhookUrl: https://<redact>
includeUser: false
_.credentialsId: <redact>
active: true
_.: on
_.autoBuildsRegex: adbbb
_.: on
_.autoDeploymentsRegex: adddd
_.: on
Submit:
Jenkins-Crumb: <redact>
json: {"sites":{"site":"<redact>.atlassian.net","webhookUrl":"https://<redact>","includeUser":"false","credentialsId":"<redact>","active":"true"},"":[{"autoBuildsRegex":"adbbb"},{"autoDeploymentsRegex":"adddd"},true],"Submit":"","Jenkins-Crumb":"<redact>"}
This is the json payload when those are unchecked
{
"sites": {
"site": "<redact>.atlassian.net",
"webhookUrl": "https://<redact>",
"includeUser": "false",
"credentialsId": "<redact>",
"active": "true"
},
"": false,
"Submit": "",
"Jenkins-Crumb": "<redact>"
}
This is the POST data
site: <redact>.atlassian.net
webhookUrl: https://<redact>
includeUser: false
_.credentialsId: <redact>
active: true
_.autoBuildsRegex:
_.autoDeploymentsRegex:
Submit:
Jenkins-Crumb: <redact>
json: {"sites":{"site":"<redact>.atlassian.net","webhookUrl":"https://<redact>","includeUser":"false","credentialsId":"<redact>","active":"true"},"":false,"Submit":"","Jenkins-Crumb":"<redact>"}
Looks like it is a regression in 2.0.12.
I installed 2.0.11 and was able to save. I noticed the major difference being that in 2.0.11, it seems like the configuration is still stored under "System Configuration->System", ie /manage/configure
But in 2.0.12, it seems like it was moved out as its own config section? ie. /manage/atlassian-jira-software-cloud/
Could it be that when its in an independent section, the parsing of the config data or endpoint could be different? I can't help there as I am not familiar with Jenkins plugin coding but hope this helps pinpoint the issue.
@walvekarnikhil fyi downgrading to 2.0.11 worked fine for us.
Let me try downgrading and check it out. By the way, I still see Jira Cloud section under "System Configuration->System", ie /manage/configure and it is getting saved but I can't use it in the pipeline. The pipeline gives error no site defined.
Thank you @yylai !! yes, it started working after the downgrade. There is still some other issue though, not able to extract IssueKeys. Most likely something is wrong with my job config. Debug logs not showing anything
I still have this issue on version 2.0.14 of the plugin. Is there a workaround or is it required to downgrade to 2.0.11?
Environment
Jenkins: 2.440.2
OS: Linux - 4.18.0-305.3.1.el8_4.x86_64
Java: 11.0.12 - Red Hat, Inc. (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
atlassian-jira-software-cloud:2.0.14
badge:1.9.1
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.77-225.v26ea_c9455fd9
branch-api:2.1152.v6f101e97dd77
build-pipeline-plugin:2.0.1
build-timeout:1.32
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.2.0
cloudbees-folder:6.901.vb_4c7a_da_75da_3
command-launcher:107.v773860566e2e
commons-lang3-api:3.13.0-62.v7d18e55f51e2
commons-text-api:1.11.0-95.v22a_d30ee5d36
conditional-buildstep:1.4.3
credentials:1337.v60b_d7b_c7b_c9f
credentials-binding:657.v2b_19db_7d6e6d
dark-theme:439.vdef09f81f85e
data-tables-api:2.0.3-1
display-url-api:2.200.vb_9327d658781
downstream-build-cache:1.7
durable-task:550.v0930093c4b_a_6
echarts-api:5.5.0-1
email-ext:2.105
envinject:2.908.v66a_774b_31d93
envinject-api:1.199.v3ce31253ed13
flexible-publish:0.16.1
font-awesome-api:6.5.1-3
ghprb:1.42.2
git:5.2.1
git-client:4.7.0
git-tag-message:1.7.1
github:1.38.0
github-api:1.318-461.v7a_c09c9fa_d63
github-branch-source:1787.v8b_8cd49a_f8f1
github-oauth:597.ve0c3480fcb_d0
groovy-postbuild:228.vcdb_cf7265066
gson-api:2.10.1-15.v0d99f670e0a_7
instance-identity:185.v303dc7c645f9
ionicons-api:70.v2959a_b_74e3cf
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-6
javax-mail-api:1.6.2-9
jaxb:2.3.9-1
jdk-tool:73.vddf737284550
jenkins-jira-issue-updater:1.20
jersey2-api:2.42-147.va_28a_44603b_d5
jira:3.13
jira-integration:5.2.0-23.v990dc373a_0b_f
jjwt-api:0.11.5-112.ve82dfb_224b_a_d
joda-time-api:2.12.7-29.v5a_b_e3a_82269a_
jquery:1.12.4-1
jquery3-api:3.7.1-2
jsch:0.2.16-86.v42e010d9484b_
json-api:20240303-41.v94e11e6de726
json-path-api:2.9.0-58.v62e3e85b_a_655
junit:1265.v65b_14fa_f12f0
leastload:3.0.0
lockable-resources:1246.v28b_e4cc6fa_16
mailer:472.vf7c289a_4b_420
matrix-auth:3.2.2
matrix-project:822.824.v14451b_c0fd42
metrics:4.2.21-449.v6960d7c54c69
mina-sshd-api-common:2.12.1-101.v85b_e08b_780dd
mina-sshd-api-core:2.12.1-101.v85b_e08b_780dd
naginator:1.436.vb_e769dcb_cdf6
nodelabelparameter:1.12.0
okhttp-api:4.11.0-172.vda_da_1feeb_c6e
parameterized-trigger:787.v665fcf2a_830b_
performance:957.v658a_7065b_92a_
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-groovy-lib:704.vc58b_8890a_384
pipeline-input-step:491.vb_07d21da_1a_fb_
pipeline-model-api:2.2198.v41dd8ef6dd56
pipeline-model-definition:2.2198.v41dd8ef6dd56
pipeline-model-extensions:2.2198.v41dd8ef6dd56
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2198.v41dd8ef6dd56
plain-credentials:179.vc5cb_98f6db_38
plugin-usage-plugin:4.4
plugin-util-api:4.1.0
robot:3.5.1
run-condition:1.7
scm-api:689.v237b_6d3a_ef7f
script-security:1335.vf07d9ce377a_e
snakeyaml-api:2.2-111.vc6598e30cc65
sonar:2.17.2
ssh-credentials:337.v395d2403ccd4
ssh-slaves:2.948.vb_8050d697fec
sshd:3.322.v159e91f6a_550
structs:337.v1b_04ea_4df7c8
support-core:1427.v083f1d9372a_f
theme-manager:215.vc1ff18d67920
throttle-concurrents:2.14
token-macro:400.v35420b_922dcb_
trilead-api:2.142.v748523a_76693
variant:60.v7290fc0eb_b_cd
workflow-api:1291.v51fd2a_625da_7
workflow-basic-steps:1049.v257a_e6b_30fb_d
workflow-cps:3894.vd0f0248b_a_fc4
workflow-durable-task-step:1336.v768003e07199
workflow-job:1400.v7fd111b_ec82f
workflow-multibranch:773.vc4fe1378f1d5
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:657.v03b_e8115821b_
workflow-support:896.v175a_a_9c5b_78f
yet-another-build-visualizer:1.16
Jenkins and plugins versions report
Environment
```text Jenkins: 2.414.1 OS: Linux - 5.4.0-1103-aws Java: 11.0.19 - Ubuntu (OpenJDK 64-Bit Server VM) --- Office-365-Connector:4.20.2 ace-editor:1.1 amazon-ecr:1.114.vfd22430621f5 ansible:253.v4fe719ffdd8a_ ant:497.v94e7d9fffa_b_9 antisamy-markup-formatter:162.v0e6ec0fcfcf6 apache-httpcomponents-client-4-api:4.5.14-208.v438351942757 apache-httpcomponents-client-5-api:5.2.1-1.1 atlassian-jira-software-cloud:2.0.12 authentication-tokens:1.53.v1c90fd9191a_b_ aws-credentials:218.v1b_e9466ec5da_ aws-java-sdk:1.12.529-406.vdeff15e5817d aws-java-sdk-cloudformation:1.12.529-406.vdeff15e5817d aws-java-sdk-codebuild:1.12.529-406.vdeff15e5817d aws-java-sdk-ec2:1.12.529-406.vdeff15e5817d aws-java-sdk-ecr:1.12.529-406.vdeff15e5817d aws-java-sdk-ecs:1.12.529-406.vdeff15e5817d aws-java-sdk-efs:1.12.529-406.vdeff15e5817d aws-java-sdk-elasticbeanstalk:1.12.529-406.vdeff15e5817d aws-java-sdk-iam:1.12.529-406.vdeff15e5817d aws-java-sdk-kinesis:1.12.529-406.vdeff15e5817d aws-java-sdk-logs:1.12.529-406.vdeff15e5817d aws-java-sdk-minimal:1.12.529-406.vdeff15e5817d aws-java-sdk-secretsmanager:1.12.529-406.vdeff15e5817d aws-java-sdk-sns:1.12.529-406.vdeff15e5817d aws-java-sdk-sqs:1.12.529-406.vdeff15e5817d aws-java-sdk-ssm:1.12.529-406.vdeff15e5817d azure-commons:1.1.3 bootstrap4-api:4.6.0-6 bootstrap5-api:5.3.2-1 bouncycastle-api:2.29 branch-api:2.1128.v717130d4f816 build-env-propagator:1.0 build-timeout:1.31 caffeine-api:3.1.8-133.v17b_1ff2e0599 checks-api:2.0.2 chromedriver:1.2 cloud-stats:320.v96b_65297a_4b_b_ cloudbees-credentials:3.3 cloudbees-folder:6.848.ve3b_fd7839a_81 cobertura:1.17 code-coverage-api:4.99.0 command-launcher:107.v773860566e2e commons-httpclient3-api:3.1-3 commons-lang3-api:3.13.0-62.v7d18e55f51e2 commons-text-api:1.10.0-78.v3e7b_ea_d5a_fe1 conditional-buildstep:1.4.3 config-file-provider:959.vcff671a_4518b_ copyartifact:722.v0662a_9b_e22a_c coverage:1.5.0 credentials:1293.vff276f713473 credentials-binding:636.v55f1275c7b_27 cvs:2.19.1 data-tables-api:1.13.6-5 delivery-pipeline-plugin:1.4.2 display-url-api:2.200.vb_9327d658781 docker-commons:439.va_3cb_0a_6a_fb_29 docker-java-api:3.3.1-79.v20b_53427e041 docker-plugin:1.5 docker-workflow:572.v950f58993843 durable-task:523.va_a_22cf15d5e0 echarts-api:5.4.0-6 email-ext:2.102 embeddable-build-status:412.v09da_db_1dee68 envinject:2.908.v66a_774b_31d93 envinject-api:1.199.v3ce31253ed13 extensible-choice-parameter:1.8.1 external-monitor-job:215.v2e88e894db_f8 font-awesome-api:6.4.2-1 forensics-api:2.3.0 git:5.2.0 git-client:4.5.0 git-parameter:0.9.19 git-server:99.va_0826a_b_cdfa_d github:1.37.3 github-api:1.316-451.v15738eef3414 github-branch-source:1741.va_3028eb_9fd21 gitlab-api:5.3.0-91.v1f9a_fda_d654f gitlab-oauth:1.18 gitlab-plugin:1.7.16 gradle:2.8.2 handlebars:3.0.8 icon-shim:3.0.0 instance-identity:173.va_37c494ec4e5 ionicons-api:56.v1b_1c8c49374e jackson2-api:2.15.2-350.v0c2f3f8fc595 jakarta-activation-api:2.0.1-3 jakarta-mail-api:2.0.1-3 javadoc:243.vb_b_503b_b_45537 javax-activation-api:1.2.0-6 javax-mail-api:1.6.2-9 jaxb:2.3.8-1 jdk-tool:73.vddf737284550 jersey2-api:2.40-1 jjwt-api:0.11.5-77.v646c772fddb_0 jquery:1.12.4-1 jquery-detached:1.2.1 jquery3-api:3.7.1-1 jsch:0.2.8-65.v052c39de79b_2 junit:1240.vf9529b_881428 kubernetes:4029.v5712230ccb_f8 kubernetes-client-api:6.8.1-224.vd388fca_4db_3b_ kubernetes-credentials:0.11 ldap:701.vf8619de9160a_ lockable-resources:1185.v0c528656ce04 m2release:0.16.4 mailer:463.vedf8358e006b_ mapdb-api:1.0.9-28.vf251ce40855d mask-passwords:173.v6a_077a_291eb_5 matrix-auth:3.2.1 matrix-project:808.v5a_b_5f56d6966 maven-artifact-choicelistprovider:1.16 maven-dependency-update-trigger:1.5 maven-info:0.3.1 maven-metadata-plugin:2.2 maven-plugin:3.23 maven-repo-cleaner:1.3 metrics:4.2.18-442.v02e107157925 mina-sshd-api-common:2.10.0-69.v28e3e36d18eb_ mina-sshd-api-core:2.10.0-69.v28e3e36d18eb_ momentjs:1.1.1 nexus-artifact-uploader:2.14 nodejs:1.6.1 oauth-credentials:0.646.v02b_66dc03d2e okhttp-api:4.11.0-157.v6852a_a_fa_ec11 pam-auth:1.10 parameterized-trigger:2.46 pipeline-aws:1.43 pipeline-build-step:505.v5f0844d8d126 pipeline-github-lib:42.v0739460cda_c4 pipeline-graph-analysis:202.va_d268e64deb_3 pipeline-groovy-lib:689.veec561a_dee13 pipeline-input-step:477.v339683a_8d55e pipeline-milestone-step:111.v449306f708b_7 pipeline-model-api:2.2144.v077a_d1928a_40 pipeline-model-declarative-agent:1.1.1 pipeline-model-definition:2.2144.v077a_d1928a_40 pipeline-model-extensions:2.2144.v077a_d1928a_40 pipeline-rest-api:2.33 pipeline-stage-step:305.ve96d0205c1c6 pipeline-stage-tags-metadata:2.2144.v077a_d1928a_40 pipeline-stage-view:2.33 pipeline-utility-steps:2.16.0 plain-credentials:143.v1b_df8b_d3b_e48 plugin-util-api:3.5.0 popper-api:1.16.1-3 popper2-api:2.11.6-2 postbuild-task:1.9 postbuildscript:3.2.0-550.v88192b_d3e922 prism-api:1.29.0-8 publish-over:0.22 publish-over-ssh:1.25 purge-job-history:1.6 repository-connector:2.2.1 resource-disposer:0.23 role-strategy:689.v731678c3e0eb_ run-condition:1.7 s3:466.vf5b_3db_8e3eb_2 scm-api:676.v886669a_199a_a_ script-security:1275.v23895f409fb_d snakeyaml-api:2.2-111.vc6598e30cc65 ssh-agent:333.v878b_53c89511 ssh-credentials:308.ve4497b_ccd8f4 ssh-slaves:2.916.vd17b_43357ce4 sshd:3.312.v1c601b_c83b_0e structs:325.vcb_307d2a_2782 subversion:2.17.3 testng-plugin:835.v51ed3da_fcc35 thinBackup:1.18 timestamper:1.26 token-macro:384.vf35b_f26814ec trilead-api:2.84.v72119de229b_7 unleash:2.4.0 variant:60.v7290fc0eb_b_cd windows-slaves:1.8.1 workflow-aggregator:596.v8c21c963d92d workflow-api:1283.v99c10937efcb_ workflow-basic-steps:1042.ve7b_140c4a_e0c workflow-cps:3802.vd42b_fcf00b_a_c workflow-cps-global-lib:609.vd95673f149b_b workflow-durable-task-step:1289.v4d3e7b_01546b_ workflow-job:1348.v32a_a_f150910e workflow-multibranch:756.v891d88f2cd46 workflow-scm-step:415.v434365564324 workflow-step-api:639.v6eca_cd8c04a_a_ workflow-support:865.v43e78cc44e0d ws-cleanup:0.45 xvfb:1.2 xvnc:1.28 ```What Operating System are you using (both controller, and any agents involved in the problem)?
Ubuntu
Reproduction steps
Expected Results
The site list should show newly added site
Actual Results
Not able to see newly added site, the logs show
Anything else?
No response
Are you interested in contributing a fix?
No response