[JIRA] (JENKINS-54345) Job-DSL RTC Build Definition

26 views
Skip to first unread message

VictorMartinezRubio@gmail.com (JIRA)

unread,
Oct 30, 2018, 8:34:02 AM10/30/18
to jenkinsc...@googlegroups.com
Victor Martinez moved an issue
 
Jenkins / Task JENKINS-54345
Job-DSL RTC Build Definition
Change By: Victor Martinez
Project: Jenkins Website
Key: WEBSITE JENKINS - 526 54345
Workflow: WEBSITE: Software Development Workflow JNJira + In-Review
Status: To Do Open
Component/s: job-dsl-plugin
Component/s: plugin-site
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mail@daniel-spilker.com (JIRA)

unread,
Jan 4, 2019, 4:43:02 PM1/4/19
to jenkinsc...@googlegroups.com
Daniel Spilker updated an issue
 
Jenkins / Improvement JENKINS-54345
Job-DSL RTC Build Definition
Change By: Daniel Spilker
Issue Type: Task Improvement

mail@daniel-spilker.com (JIRA)

unread,
Aug 22, 2019, 8:48:03 AM8/22/19
to jenkinsc...@googlegroups.com
Daniel Spilker commented on Improvement JENKINS-54345
 
Re: Job-DSL RTC Build Definition

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.

len_isac@hotmail.com (JIRA)

unread,
Aug 27, 2019, 8:04:03 AM8/27/19
to jenkinsc...@googlegroups.com
Len Isac commented on Improvement JENKINS-54345

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 http://jenkins_prd_pipeline.fmr.com:8080/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.

 

len_isac@hotmail.com (JIRA)

unread,
Aug 27, 2019, 8:05:02 AM8/27/19
to jenkinsc...@googlegroups.com
Len Isac edited a comment on Improvement JENKINS-54345
Thanks [~v2v], [~daspilker].

[~daspilker], 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| http://jenkins_prd_pipeline.fmr.com:8080/plugin/job-dsl/api-viewer/index.html#method/javaposse.jobdsl.dsl.helpers.ScmContext.rtc]

 

 
{code:java}

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

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

I could not find a configure block specifically for RTC.

 

mail@daniel-spilker.com (JIRA)

unread,
Aug 27, 2019, 11:23:02 AM8/27/19
to jenkinsc...@googlegroups.com

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

len_isac@hotmail.com (JIRA)

unread,
Aug 27, 2019, 11:42:02 AM8/27/19
to jenkinsc...@googlegroups.com
Len Isac commented on Improvement JENKINS-54345

Can this be done with RTC?

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

The above is for SVN.

Reply all
Reply to author
Forward
0 new messages