• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • xcode-plugin
    • Jenkins 2.190.1 with xcode-plugin 2.0.12, job-dsl 1.76 and structs 1.20

      When defining the parameter keychainPwd() using groovy for describing a job using DSL, it seems with the new version cannot be done. 

      When using a string, job DSL processing shows this error:

      • Example: -->
      keychainPwd('password')

      Processing DSL script ios.groovy
      ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (java.lang.String) values: [password]

      Prior to 2.0.12 keychainPwd used a String.

      • Example: -->

       

      def keychainPwdVar = hudson.util.Secret.fromString('password')
      
      keychainPwd(keychainPwdVar)
      

      Processing DSL script ios.groovy
      ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (hudson.util.Secret) values: [password]

      In 2.0.12 keychainPwd could use a String (deprecated) or the newone Secret.

       

      I have tested all kind of possible combinations without luck. Not sure if I should define it in other way or this is a kind of bug when usind DSL.

          [JENKINS-59950] Error on using keychainPwd() with DSL groovy

          Diego Torres created issue -
          Diego Torres made changes -
          Description Original: When defining the parameter keychainPwd() using groovy for describing a job using DSL, it seems with the new version cannot be done. 

          When using a string, job DSL processing shows this error:
           * Example: -->

          {code:java}
          keychainPwd('password'){code}
          Processing DSL script ios.groovy
          ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (java.lang.String) values: [password]

          Prior to 2.0.12 keychainPwd used a String.
           * Example: -->

           
          {code:java}
          def keychainPwdVar = hudson.util.Secret.fromString('password')
          keychainPwd(hadson.util.Secret.fromString("password"))
          {code}
          Processing DSL script ios.groovy
          ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (hudson.util.Secret) values: [password]

          In 2.0.12 keychainPwd could use a String (deprecated) or the newone Secret.

           

          I have tested all kind of possible combinations without luck. Not sure if I should define it in other way or this is a kind of bug when usind DSL.
          New: When defining the parameter keychainPwd() using groovy for describing a job using DSL, it seems with the new version cannot be done. 

          When using a string, job DSL processing shows this error:
           * Example: -->

          {code:java}
          keychainPwd('password'){code}
          Processing DSL script ios.groovy
           ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (java.lang.String) values: [password]

          Prior to 2.0.12 keychainPwd used a String.
           * Example: -->

           
          {code:java}
          def keychainPwdVar = hudson.util.Secret.fromString('password')
          keychainPwd(keychainPwdVar)
          {code}
          Processing DSL script ios.groovy
           ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (hudson.util.Secret) values: [password]

          In 2.0.12 keychainPwd could use a String (deprecated) or the newone Secret.

           

          I have tested all kind of possible combinations without luck. Not sure if I should define it in other way or this is a kind of bug when usind DSL.
          Diego Torres made changes -
          Description Original: When defining the parameter keychainPwd() using groovy for describing a job using DSL, it seems with the new version cannot be done. 

          When using a string, job DSL processing shows this error:
           * Example: -->

          {code:java}
          keychainPwd('password'){code}
          Processing DSL script ios.groovy
           ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (java.lang.String) values: [password]

          Prior to 2.0.12 keychainPwd used a String.
           * Example: -->

           
          {code:java}
          def keychainPwdVar = hudson.util.Secret.fromString('password')
          keychainPwd(keychainPwdVar)
          {code}
          Processing DSL script ios.groovy
           ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (hudson.util.Secret) values: [password]

          In 2.0.12 keychainPwd could use a String (deprecated) or the newone Secret.

           

          I have tested all kind of possible combinations without luck. Not sure if I should define it in other way or this is a kind of bug when usind DSL.
          New: When defining the parameter keychainPwd() using groovy for describing a job using DSL, it seems with the new version cannot be done. 

          When using a string, job DSL processing shows this error:
           * Example: -->

          {code:java}
          keychainPwd('password'){code}
          Processing DSL script ios.groovy
           ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (java.lang.String) values: [password]

          Prior to 2.0.12 keychainPwd used a String.
           * Example: -->

           
          {code:java}
          def keychainPwdVar = hudson.util.Secret.fromString('password')

          keychainPwd(keychainPwdVar)
          {code}
          Processing DSL script ios.groovy
           ERROR: (unknown source) No signature of method: javaposse.jobdsl.plugin.structs.DescribableContext.keychainPwd() is applicable for argument types: (hudson.util.Secret) values: [password]

          In 2.0.12 keychainPwd could use a String (deprecated) or the newone Secret.

           

          I have tested all kind of possible combinations without luck. Not sure if I should define it in other way or this is a kind of bug when usind DSL.
          Kazuhide Takahashi made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Kazuhide Takahashi made changes -
          Assignee New: Kazuhide Takahashi [ kazuhidet ]
          Kazuhide Takahashi made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Closed [ 6 ]

            kazuhidet Kazuhide Takahashi
            dtorres_vl Diego Torres
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: