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

            lkisac01 Len Isac created issue -
            lkisac01 Len Isac made changes -
            Field Original Value New Value
            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)*

             

            Currently what is listed is:

            [https://jenkinsci.github.io/job-dsl-plugin/#path/job-scm-rtc
            job('example-1') {
                scm {
                    rtc {
                        buildDefinition('buildDefinitionInRTC')
                    }
                }
            }

            job('example-2') {
                scm {
                    rtc {
                        buildWorkspace('some-workspace')
                        connection('my-build-tool', 'build-user', 'https://localhost:9444/ccm', 60)
                    }
                }
            }
            Is it possible to include an example for defining the below config?

            !image-2018-10-15-08-55-49-311.png!

            Thanks
            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?

            !image-2018-10-15-08-55-49-311.png!

            Thanks
            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.    
            v2v Victor Martinez made changes -
            Project Jenkins Website [ 10401 ] Jenkins [ 10172 ]
            Key WEBSITE-526 JENKINS-54345
            Workflow WEBSITE: Software Development Workflow [ 232105 ] JNJira + In-Review [ 232404 ]
            Status To Do [ 10003 ] Open [ 1 ]
            Component/s job-dsl-plugin [ 16720 ]
            Component/s plugin-site [ 21221 ]
            daspilker Daniel Spilker made changes -
            Issue Type Task [ 3 ] Improvement [ 4 ]
            daspilker Daniel Spilker made changes -
            Link This issue is blocked by JENKINS-34173 [ JENKINS-34173 ]
            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: