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

TestLink plugin - cant get custom field values as variables in job

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • testlink-plugin
    • None

      I have a job in jenkis that must read values of three custom fields in testlink, but reads only one.
      The only one variable read is the default 'Java Class', any other new isn't read.

      Here are my environment:

      Jenkins version: 1.530
      TestLink version: 1.9.4
      Plugin version: 3.2

      This is my configuration, in Iterative Build steps. I follow the instructions on the plugin site (https://wiki.jenkins-ci.org/display/JENKINS/TestLink+Plugin)
      When I try to access the variables like that:

      #!/bin/sh
      echo 1 - ${TESTLINK_TESTCASE_JAVA_CLASS}
      echo 2 - ${TESTLINK_JAVA_METHOD}
      echo 3 - ${TESTLINK_TESTCASE_JAVA_METHOD}
      echo 4 - TESTLINK_TESTCASE_${JAVA_METHOD}
      echo 5 - $TESTLINK_TESTCASE_JAVA_METHOD

      I got this output:
      1 - br.com.cpqd.testeokeanos.unittests.ManterConceitoIncluirTest#deveIncluirConceito
      2 -
      3 -
      4 - TESTLINK_TESTCASE_
      5 -

      There is a way to debug or print all variables? I need to know if Jenkins can read my values from TestLink.

      I see this jira https://issues.jenkins-ci.org/browse/JENKINS-17622 but i think its not related.

          [JENKINS-21535] TestLink plugin - cant get custom field values as variables in job

          gustavo labbate godoy created issue -
          gustavo labbate godoy made changes -
          Summary Original: TestLink plugin - cant get custm field values as variables in job New: TestLink plugin - cant get custom field values as variables in job
          gustavo labbate godoy made changes -
          Description Original: I have a job in jenkis that must read values of three custom fields in testlink, but reads only one.
          The only one variable readed is the default 'Java Class', any other new isn't read.

          Here are my environment:


          Jenkins version: 1.530
          TestLink version: 1.9.4
          Plugin version: 3.2

          This is my configuration, in Iterative Build steps. I follow the instructions on the plugin site (https://wiki.jenkins-ci.org/display/JENKINS/TestLink+Plugin)
          When I try to access the variables like that:

          #!/bin/sh
          echo 1 - ${TESTLINK_TESTCASE_JAVA_CLASS}
          echo 2 - ${TESTLINK_JAVA_METHOD}
          echo 3 - ${TESTLINK_TESTCASE_JAVA_METHOD}
          echo 4 - TESTLINK_TESTCASE_${JAVA_METHOD}
          echo 5 - $TESTLINK_TESTCASE_JAVA_METHOD


          I got this output:
          1 - br.com.cpqd.testeokeanos.unittests.ManterConceitoIncluirTest#deveIncluirConceito
          2 -
          3 -
          4 - TESTLINK_TESTCASE_
          5 -


          There is a way to debug or print all variables? I need to know if Jenkins can read my values from TestLink.

          I see this jira https://issues.jenkins-ci.org/browse/JENKINS-17622 but i think its not related.
          New: I have a job in jenkis that must read values of three custom fields in testlink, but reads only one.
          The only one variable read is the default 'Java Class', any other new isn't read.

          Here are my environment:


          Jenkins version: 1.530
          TestLink version: 1.9.4
          Plugin version: 3.2

          This is my configuration, in Iterative Build steps. I follow the instructions on the plugin site (https://wiki.jenkins-ci.org/display/JENKINS/TestLink+Plugin)
          When I try to access the variables like that:

          #!/bin/sh
          echo 1 - ${TESTLINK_TESTCASE_JAVA_CLASS}
          echo 2 - ${TESTLINK_JAVA_METHOD}
          echo 3 - ${TESTLINK_TESTCASE_JAVA_METHOD}
          echo 4 - TESTLINK_TESTCASE_${JAVA_METHOD}
          echo 5 - $TESTLINK_TESTCASE_JAVA_METHOD


          I got this output:
          1 - br.com.cpqd.testeokeanos.unittests.ManterConceitoIncluirTest#deveIncluirConceito
          2 -
          3 -
          4 - TESTLINK_TESTCASE_
          5 -


          There is a way to debug or print all variables? I need to know if Jenkins can read my values from TestLink.

          I see this jira https://issues.jenkins-ci.org/browse/JENKINS-17622 but i think its not related.
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 153532 ] New: JNJira + In-Review [ 178523 ]

            kinow Bruno P. Kinoshita
            gustavolabbate gustavo labbate godoy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: