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

Pipeline job not saving script configuration when mixing-security-realm-plugin installed

      When I'm saving pipeline job configuration with pipeline script filled or pipeline script from SCM selected and next I'm trying to edit job configuration again it always load with empty pipeline script (as in attachment).

      Job's config.xml file has proper data. The job can be run and will successfully perform all the steps.

      If I reconfigure and save it with empty pipeline script, the script will be lost.

      After uninstallation of mixing-security-realm-plugin everything back to normal.

          [JENKINS-67055] Pipeline job not saving script configuration when mixing-security-realm-plugin installed

          orzech szek created issue -
          orzech szek made changes -
          Component/s New: mixing-security-realm-plugin [ 28024 ]
          Component/s Original: workflow-cps-plugin [ 21713 ]
          orzech szek made changes -
          Environment Original: Jenkins 2.318
          workflow-job-plugin 2.6
          workflow-cps-plugin 2.94
          New: Jenkins 2.318
          workflow-job-plugin 2.6
          mixing-security-realm-plugin 1.3
          orzech szek made changes -
          Description Original: When I'm saving pipeline job configuration with pipeline script filled or pipeline script from SCM selected and next I'm trying to edit job configuration again it always load with empty pipeline script (as in attachment).

          Job's config.xml file has proper data. The job can be run and will successfully perform all the steps.

          If I reconfigure and save it with empty pipeline script, the script will be lost.
          New: When I'm saving pipeline job configuration with pipeline script filled or pipeline script from SCM selected and next I'm trying to edit job configuration again it always load with empty pipeline script (as in attachment).

          Job's config.xml file has proper data. The job can be run and will successfully perform all the steps.

          If I reconfigure and save it with empty pipeline script, the script will be lost.

          After uninstallation of [mixing-security-realm-plugin|https://issues.jenkins.io/issues/?jql=project+%3D+JENKINS+AND+component+%3D+mixing-security-realm-plugin] everything back to normal.
          orzech szek made changes -
          Summary Original: Pipeline job not saving script configuration New: Pipeline job not saving script configuration when mixing-security-realm-plugin installed
          orzech szek made changes -
          Priority Original: Major [ 3 ] New: Minor [ 4 ]

          Andrii Hava added a comment -

          Same problem.
          If plugin installed and enabled, the pipeline script code empty, even if it was there before. If doesn't save job then it will works like usual.
          Its seams that web interface cant load full pipeline config from file, but can save to it. And after save, it clear pipeline script part.

          How to reproduce.
          Install Jenkins
          Install Mixing Security Realm 1.3 plugin
          Create pipeline
          In new opened page:
          go to Pipeline -> Definition -> choose Pipeline script -> select Try sample pipeline Hello world -> save job
          Run this job -> Confirm success result
          Edit job -> confirm that Pipeline script  empty.
          Don't do any changes and don't press save, go back, run job once again to see that script still there.
          And after that  do some changes in job, save, run, see that job result has no code to execute.

          Jenkins 2.303.2
          Run on bare metal from rpm repo
          CentOS 7
          Java 8

          Andrii Hava added a comment - Same problem. If plugin installed and enabled, the pipeline script code empty, even if it was there before. If doesn't save job then it will works like usual. Its seams that web interface cant load full pipeline config from file, but can save to it. And after save, it clear pipeline script part. How to reproduce. Install Jenkins Install Mixing Security Realm 1.3 plugin Create pipeline In new opened page: go to Pipeline -> Definition -> choose Pipeline script -> select Try sample pipeline Hello world -> save job Run this job -> Confirm success result Edit job -> confirm that Pipeline script  empty. Don't do any changes and don't press save, go back, run job once again to see that script still there. And after that  do some changes in job, save, run, see that job result has no code to execute. Jenkins 2.303.2 Run on bare metal from rpm repo CentOS 7 Java 8

          Ali added a comment -

          same issue here

          Ali added a comment - same issue here

          Anyone get a solution to this I've had the same symptoms crop up.

          Michael Carter added a comment - Anyone get a solution to this I've had the same symptoms crop up.

          Assuming my issue is the same but I did some digging on my end.

          debug varStatus: org.apache.commons.jelly.tags.core.ForEachTag$LoopStatus@7f3e1b8d
          debug var.....: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition$DescriptorImpl@72d8eb26
          debug currDesc: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition$DescriptorImpl@6904e8d2
          debug var..... name: Pipeline script
          debug currDesc name: Pipeline script
          debug var.....   id: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition
          debug currDesc   id: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition
          debug var......xml.: 
          debug currDesc.xml.: 

          Seems the comparison is against "memory address" and the two objects don't come up as equal.    So I think somewhere the code did a new()

          Michael Carter added a comment - Assuming my issue is the same but I did some digging on my end. debug varStatus: org.apache.commons.jelly.tags.core.ForEachTag$LoopStatus@7f3e1b8d debug var.....: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition$DescriptorImpl@72d8eb26 debug currDesc: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition$DescriptorImpl@6904e8d2 debug var..... name: Pipeline script debug currDesc name: Pipeline script debug var..... id: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition debug currDesc id: org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition debug var......xml.: debug currDesc.xml.: Seems the comparison is against "memory address" and the two objects don't come up as equal.    So I think somewhere the code did a new()

            Unassigned Unassigned
            orzechszek orzech szek
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: