[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik commented on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required Jenkins ver. 2.129-SNAPSHOT org.jenkins-ci.plugins:htmlpublisher:1.17 Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik commented on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required A bit more testing: If you use a named parameter like on https://jenkins.io/blog/2017/02/10/declarative-html-publisher/ validation succeeds. However: if you try to roundtrip convert you'll get this issue, too. pipeline { agent any stages { stage('Publish') { steps { publishHTML target: [allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports'] } } } } $ curl -F "jenkinsfile= -X POST http://localhost:8080/pipeline-model-converter/validate Jenkinsfile successfully validated. $ curl -F "jenkinsfile= -X POST http://localhost:8080/pipeline-model-converter/toJson | jq ".data.json" | curl -F "json=<-" -X POST http://localhost:8080/pipeline-model-converter/toJenkinsfile { "status": "ok", "data": { "result": "failure", "errors": [ { "jenkinsfileErrors": { "result": "failure", "errors": [ { "error": [ "Missing required parameter: \"reportTitles\" @ line 18, column 9.", "Missing required parameter: \"reportTitles\" @ line 18, column 9.", "Missing required parameter: \"reportTitles\" @ line 18, column 9.", "Missing required parameter: \"reportTitles\" @ line 18, column 9.", "Missing required parameter: \"reportTitles\" @ line 18, column 9.", "Missing required parameter: \"reportTitles\" @ line 18, column 9." ] } ] } } ] } } Add Comment
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik edited a comment on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required I came across this issue using declarative. Here is how to reproduce:{code:java}pipeline { agent anystages { stage('Publish') {steps { publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports'])} } }}{code}Try to convert to json:{code:bash}$ curl - u admin:admin - F "jenkinsfile=Errors encountered validating Jenkinsfile:WorkflowScript: 6: Missing required parameter: "reportTitles" @ line 6, column 15. publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports']) ^{code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik edited a comment on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required I came across this issue using declarative. Here is how to reproduce:{code:java}pipeline { agent anystages { stage('Publish') {steps { publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports'])} } }}{code}Try to convert to json:{code :bash } $ curl -u admin:admin -F "jenkinsfile=Errors encountered validating Jenkinsfile:WorkflowScript: 6: Missing required parameter: "reportTitles" @ line 6, column 15. publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports']) ^{code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik edited a comment on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required I came across this issue using declarative. Here is how to reproduce:{code:java}pipeline { agent anystages { stage('Publish') {steps { publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports'])} } }}{code}Try to convert to json:{code :bash }$ curl -u admin:admin -F "jenkinsfile=Errors encountered validating Jenkinsfile:WorkflowScript: 6: Missing required parameter: "reportTitles" @ line 6, column 15. publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports']) ^{code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik edited a comment on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required I came across this issue using declarative. Here is how to reproduce:{code :java }pipeline { agent anystages { stage('Publish') {steps { publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports'])} } }}{code}Try to convert to json:{code :bash }curl - u admin:admin - F "jenkinsfile= toJson validate {code}{code}{ "status" Errors encountered validating Jenkinsfile : "ok", "data" WorkflowScript : {"result" 6 : "failure","errors": [ {"error": [ " Missing required parameter: \ "reportTitles \ " @ line 6, column 15. ", "Missing required parameter publishHTML([allowMissing : \"reportTitles\" @ line 6 true , column 15.", "Missing required parameter alwaysLinkToLastBuild : \"reportTitles\" @ line 6 false , column 15.", "Missing required parameter keepAll : \"reportTitles\" @ line 6 false , column 15.", "Missing required parameter reportDir : \"reportTitles\" @ line 6 'reports' , column 15 reportFiles: 'index . " html' , "Missing required parameter reportName : \"reportTitles\" @ line 6, column 15." 'Coverage reports' ] ) } ^ ] }} {code} Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik reopened an issue Jenkins / JENKINS-47989 HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required Change By: Stephan Hadamik Resolution: Incomplete Status: Resolved Reopened Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-47989) HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required
Title: Message Title Stephan Hadamik commented on JENKINS-47989 Re: HTML publisher argument reportTitles is marked as optional in PipelineSyntax editor, but it's required I came across this issue using declarative. Here is how to reproduce: pipeline { agent any stages { stage('Publish') { steps { publishHTML([allowMissing: true, alwaysLinkToLastBuild: false, keepAll: false, reportDir: 'reports', reportFiles: 'index.html', reportName: 'Coverage reports']) } } } } Try to convert to json: curl -F "jenkinsfile= -X POST http://localhost:8080/pipeline-model-converter/toJson { "status": "ok", "data": { "result": "failure", "errors": [ { "error": [ "Missing required parameter: \"reportTitles\" @ line 6, column 15.", "Missing required parameter: \"reportTitles\" @ line 6, column 15.", "Missing required parameter: \"reportTitles\" @ line 6, column 15.", "Missing required parameter: \"reportTitles\" @ line 6, column 15.", "Missing required parameter: \"reportTitles\" @ line 6, column 15.", "Missing required parameter: \"reportTitles\" @ line 6, column 15." ] } ] } } Add Comment This message was sent by