Details

    • Similar Issues:

      Description

      For the Job-DSL plugin on Jenkins CI website, I could not find an example of how to define the RTC Build Configuration  (i.e. Stream and Load Options)

      https://jenkinsci.github.io/job-dsl-plugin/#path/job-scm-rtc 

      Is it possible to include an example for defining the below config?

      Thanks

        Attachments

          Issue Links

            Activity

            Hide
            v2v Victor Martinez added a comment -

            If you use the Dynamic DSL - https://github.com/jenkinsci/job-dsl-plugin/wiki/Dynamic-DSL, those details are enough? 

            Then you can go to the <YOUR_JENKINS_URL>/plugin/job-dsl/api-viewer/index.html#plugin/teamconcert link to see those DSLs.

            This particular ticket regarding the JobDSL should be moved to another component. I'll do this now.

             

             

            Show
            v2v Victor Martinez added a comment - If you use the Dynamic DSL - https://github.com/jenkinsci/job-dsl-plugin/wiki/Dynamic-DSL,  those details are enough?  Then you can go to the <YOUR_JENKINS_URL>/plugin/job-dsl/api-viewer/index.html#plugin/teamconcert link to see those DSLs. This particular ticket regarding the JobDSL should be moved to another component. I'll do this now.    
            Hide
            daspilker Daniel Spilker added a comment -

            The Dynamic DSL currently does not support the RTC SCM source, because it's constructor has a Secret parameter which is not supported by Structs plugin (JENKINS-34173).

            But it's possible to generate the configuration using a configure block, see https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block.

            Show
            daspilker Daniel Spilker added a comment - The Dynamic DSL currently does not support the RTC SCM source, because it's constructor has a Secret parameter which is not supported by Structs plugin ( JENKINS-34173 ). But it's possible to generate the configuration using a configure block, see https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block .
            Hide
            lkisac Len Isac added a comment - - edited

            Thanks Victor Martinez, Daniel Spilker.

            Daniel Spilker, would the configure block be something like the below?  I combined one of the examples in the Configure-Block link above and <JENKINS_URL>/plugin/job-dsl/api-viewer/index.html#method/javaposse.jobdsl.dsl.helpers.ScmContext.rtc

             

             

            job('example') {
                scm {
                    rtc {
                        buildDefinition('buildDefinitionInRTC')
                    }
                    configure { node ->
                        // node represents <hudson.plugins.git.GitSCM> ??
                    }
                }
            }
            

            Or is the above not supported for RTC as you mentioned? 

            I could not find a configure block specifically for RTC.

             

            Show
            lkisac Len Isac added a comment - - edited Thanks Victor Martinez , Daniel Spilker . Daniel Spilker , would the configure block be something like the below?  I combined one of the examples in the Configure-Block link above and  <JENKINS_URL>/plugin/job-dsl/api-viewer/index.html#method/javaposse.jobdsl.dsl.helpers.ScmContext.rtc     job( 'example' ) { scm { rtc { buildDefinition( 'buildDefinitionInRTC' ) } configure { node -> // node represents <hudson.plugins.git.GitSCM> ?? } } } Or is the above not supported for RTC as you mentioned?  I could not find a configure block specifically for RTC.  
            Hide
            daspilker Daniel Spilker added a comment -

            Len Isac, you must use the configure block of the job context, see https://jenkinsci.github.io/job-dsl-plugin/#path/job-configure

            This example shows how to configure a complete SCM from scratch:
            https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block#configure-svn

            Show
            daspilker Daniel Spilker added a comment - Len Isac , you must use the configure block of the job context, see https://jenkinsci.github.io/job-dsl-plugin/#path/job-configure This example shows how to configure a complete SCM from scratch: https://github.com/jenkinsci/job-dsl-plugin/wiki/The-Configure-Block#configure-svn
            Hide
            lkisac Len Isac added a comment -

            Can this be done with RTC?

            project / scm(class: 'hudson.scm.SubversionSCM') {

            The above is for SVN.

            Show
            lkisac Len Isac added a comment - Can this be done with RTC? project / scm(class: ' hudson.scm.SubversionSCM ') { The above is for SVN.

              People

              • Assignee:
                mmccaskill Michael McCaskill
                Reporter:
                lkisac01 Len Isac
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: