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

how to execute ct lsbl from unix Extensible choice build parameter groovy script

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      how to execute "cleartool lsbl" to generate a basline list from jenkins (installed in linux) with Extensible choice build parameter after selecting groovy script option ?

      i am using below groovy snippet but it is not working :
      def list = 'lsbl -stream <Strem>@/vob/<pvob> -short'.execute().text
      list.eachLine{
      println it
      }

      i need above customization as we have multiple baselines to mount from the selected baseline Any post to resolve above issue will be highly appreciated.

        Attachments

          Activity

          Hide
          ikedam ikedam added a comment -

          You should return an array of strings like this:

          return [ "choice1", "choice2", "choice3" ]
          

          I did not test, but what you want can be done like this:

          def list = 'lsbl -stream <Strem>@/vob/<pvob> -short'.execute().text
          def ret = []
          list.eachLine{ ret.add(it) }
          return ret
          
          Show
          ikedam ikedam added a comment - You should return an array of strings like this: return [ "choice1" , "choice2" , "choice3" ] I did not test, but what you want can be done like this: def list = 'lsbl -stream <Strem>@/vob/<pvob> - short ' .execute().text def ret = [] list.eachLine{ ret.add(it) } return ret

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ram_jen venkat ram
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: