Project

General

Profile

« Previous | Next » 

Revision 46474

added settings template

View differences:

job45.groovy
8 8
        def mvnGoal= it.goal as String
9 9
        def hasSonar= it.sonar as String
10 10
        def mail = it.mail as String
11
        def repositoryId = it.deploy.RepositoryId as String
11
        def myrepositoryId = it.deploy.RepositoryId as String
12 12
        def repositoryURL = it.deploy.RepositoryURL as String
13 13
        def nightly = it.nightly as String
14 14
        def cron_node = it.cron as String
15 15
        def j_name =  'DSL4_'+projectName  
16 16
        def template_name = "dnet4-svn-template"
17
	println "executing "+projectName
17
        println "executing "+projectName        
18 18
        if (versionCode == '4')
19
        {           
20
            job(j_name) {
21
                using(template_name)
22
                scm 
23
                {
24
                   svn(URLSource)
25
                }
26
                steps {
27
                     maven mvnGoal
28
                 }
29

  
30
                }
19
        {        
20
          mavenJob(j_name) {    
21
            scm {
22
                svn(URLSource)
23
            }
24
            triggers {
25
               scm('H/10 * * * *')
26
            }
27
            jdk('Java 8')
28
            goals(mvnGoal)        
29
            publishers {
30
                deployArtifacts {
31
                    repositoryUrl (repositoryURL)
32
                    repositoryId (myrepositoryId)
33
                    uniqueVersion (true)
34
                    evenIfUnstable (true)
35
                    }
36
                }   
37
            }
31 38
        }
32 39

  
33 40
}

Also available in: Unified diff