Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-38564

API to convert json step blob to step syntax (and back) - one step at a time

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It would be great to take a chunk of json, transform to the equivalent model step, and back again.

      This includes block scoped steps (well any step really) =

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Robert Sandell
          Path:
          src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterAction.java
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterActionStepsTest.java
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/fcf9a65208eeac6b919c86444b8145855017ef90
          Log:
          JENKINS-38564 Always return an array from toJson

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Robert Sandell Path: src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterAction.java src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterActionStepsTest.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/fcf9a65208eeac6b919c86444b8145855017ef90 Log: JENKINS-38564 Always return an array from toJson
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Robert Sandell
          Path:
          src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterAction.java
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/eb24b8970afe13a318fbbf715971426aeef6af46
          Log:
          JENKINS-38564 One findbugs NPD warning fixed

          Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/b4682fcbc778...eb24b8970afe

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Robert Sandell Path: src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterAction.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/eb24b8970afe13a318fbbf715971426aeef6af46 Log: JENKINS-38564 One findbugs NPD warning fixed Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/b4682fcbc778...eb24b8970afe
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Robert Sandell
          Path:
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTValue.groovy
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/JSONParser.groovy
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/validator/ModelValidator.groovy
          src/main/resources/ast-schema.json
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/EnvironmentTest.java
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/validator/JSONValidationTest.java
          src/test/resources/json/agentAny.json
          src/test/resources/json/agentDocker.json
          src/test/resources/json/agentLabel.json
          src/test/resources/json/agentNoneWithNode.json
          src/test/resources/json/errors/emptyEnvironment.json
          src/test/resources/json/errors/emptyNotifications.json
          src/test/resources/json/errors/emptyParallel.json
          src/test/resources/json/errors/emptyPostBuild.json
          src/test/resources/json/errors/emptyStages.json
          src/test/resources/json/errors/invalidBuildCondition.json
          src/test/resources/json/errors/malformed.json
          src/test/resources/json/errors/missingAgent.json
          src/test/resources/json/errors/missingRequiredStepParameters.json
          src/test/resources/json/errors/missingStages.json
          src/test/resources/json/errors/notInstalledToolType.json
          src/test/resources/json/errors/notInstalledToolVersion.json
          src/test/resources/json/errors/rejectParallelMixedInSteps.json
          src/test/resources/json/errors/rejectStageInSteps.json
          src/test/resources/json/errors/stageWithoutName.json
          src/test/resources/json/errors/unknownStepParameter.json
          src/test/resources/json/errors/unlistedToolType.json
          src/test/resources/json/globalLibrarySuccess.json
          src/test/resources/json/legacyMetaStepSyntax.json
          src/test/resources/json/metaStepSyntax.json
          src/test/resources/json/parallelPipeline.json
          src/test/resources/json/postBuildAndNotifications.json
          src/test/resources/json/simpleEnvironment.json
          src/test/resources/json/simpleNotification.json
          src/test/resources/json/simplePipeline.json
          src/test/resources/json/simplePostBuild.json
          src/test/resources/json/simpleScript.json
          src/test/resources/json/simpleTools.json
          src/test/resources/json/twoStagePipeline.json
          src/test/resources/json/validStepParameters.json
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/d580fa6083ae4cedb0c9b793ae4bcdb3ee069e2f
          Log:
          Merge remote-tracking branch 'origin/master' into JENKINS-38564

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Robert Sandell Path: src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTValue.groovy src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/JSONParser.groovy src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/validator/ModelValidator.groovy src/main/resources/ast-schema.json src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/AbstractModelDefTest.java src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/EnvironmentTest.java src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/validator/JSONValidationTest.java src/test/resources/json/agentAny.json src/test/resources/json/agentDocker.json src/test/resources/json/agentLabel.json src/test/resources/json/agentNoneWithNode.json src/test/resources/json/errors/emptyEnvironment.json src/test/resources/json/errors/emptyNotifications.json src/test/resources/json/errors/emptyParallel.json src/test/resources/json/errors/emptyPostBuild.json src/test/resources/json/errors/emptyStages.json src/test/resources/json/errors/invalidBuildCondition.json src/test/resources/json/errors/malformed.json src/test/resources/json/errors/missingAgent.json src/test/resources/json/errors/missingRequiredStepParameters.json src/test/resources/json/errors/missingStages.json src/test/resources/json/errors/notInstalledToolType.json src/test/resources/json/errors/notInstalledToolVersion.json src/test/resources/json/errors/rejectParallelMixedInSteps.json src/test/resources/json/errors/rejectStageInSteps.json src/test/resources/json/errors/stageWithoutName.json src/test/resources/json/errors/unknownStepParameter.json src/test/resources/json/errors/unlistedToolType.json src/test/resources/json/globalLibrarySuccess.json src/test/resources/json/legacyMetaStepSyntax.json src/test/resources/json/metaStepSyntax.json src/test/resources/json/parallelPipeline.json src/test/resources/json/postBuildAndNotifications.json src/test/resources/json/simpleEnvironment.json src/test/resources/json/simpleNotification.json src/test/resources/json/simplePipeline.json src/test/resources/json/simplePostBuild.json src/test/resources/json/simpleScript.json src/test/resources/json/simpleTools.json src/test/resources/json/twoStagePipeline.json src/test/resources/json/validStepParameters.json http://jenkins-ci.org/commit/pipeline-model-definition-plugin/d580fa6083ae4cedb0c9b793ae4bcdb3ee069e2f Log: Merge remote-tracking branch 'origin/master' into JENKINS-38564
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Andrew Bayer
          Path:
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/Converter.groovy
          src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ModelParser.groovy
          src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterAction.java
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterActionStepsTest.java
          src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/util/IsJsonObjectContaining.java
          src/test/resources/json/steps/arrayEcho.json
          src/test/resources/json/steps/simpleEcho.json
          src/test/resources/json/steps/simpleScript.json
          http://jenkins-ci.org/commit/pipeline-model-definition-plugin/8d84b1f4ae3368db7aad9bf6c406dd1de37adfd0
          Log:
          Merge pull request #26 from jenkinsci/JENKINS-38564

          JENKINS-38564 API to convert json step blob to step syntax (and back) - one step at a time

          Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/366510af2385...8d84b1f4ae33

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/Converter.groovy src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/parser/ModelParser.groovy src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterAction.java src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/endpoints/ModelConverterActionStepsTest.java src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/util/IsJsonObjectContaining.java src/test/resources/json/steps/arrayEcho.json src/test/resources/json/steps/simpleEcho.json src/test/resources/json/steps/simpleScript.json http://jenkins-ci.org/commit/pipeline-model-definition-plugin/8d84b1f4ae3368db7aad9bf6c406dd1de37adfd0 Log: Merge pull request #26 from jenkinsci/ JENKINS-38564 JENKINS-38564 API to convert json step blob to step syntax (and back) - one step at a time Compare: https://github.com/jenkinsci/pipeline-model-definition-plugin/compare/366510af2385...8d84b1f4ae33
          Hide
          abayer Andrew Bayer added a comment -

          Merged and released in 0.3

          Show
          abayer Andrew Bayer added a comment - Merged and released in 0.3

            People

            • Assignee:
              rsandell rsandell
              Reporter:
              michaelneale Michael Neale
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: