Commit eb01774 1 parent 3343e9a commit eb01774 Copy full SHA for eb01774
File tree 10 files changed +50
-26
lines changed
main/resources/archetype-resources
test/resources/projects/testInstallNoGithub
main/resources/archetype-resources
test/resources/projects/testInstallNoGithub
main/resources/archetype-resources
test/resources/projects/testInstallNoGithub
10 files changed +50
-26
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ if (properties.get("hostOnJenkinsGitHub") == "false") {
16
16
' .github' ,
17
17
]
18
18
filesToRemove. each {
19
- new File (it, projectPath . toFile() ). delete()
19
+ projectPath . resolve (it) . toFile(). delete()
20
20
}
21
21
directoriesToRemove. each {
22
- new File (it, projectPath . toFile() ). deleteDir()
22
+ projectPath . resolve (it) . toFile(). deleteDir()
23
23
}
24
24
}
25
25
Original file line number Diff line number Diff line change 15
15
<packaging >hpi</packaging >
16
16
17
17
<name >TODO Plugin</name >
18
- #if( $hostOnJenkinsGitHub == "true" )< url >https://github.com/jenkinsci/ ${project.artifactId} -plugin</ url >#end
19
-
20
- #if( $hostOnJenkinsGitHub == "true" ) <licenses >
18
+ #if( $hostOnJenkinsGitHub == "true" )
19
+ < url >https://github.com/jenkinsci/ ${project.artifactId} -plugin</ url >
20
+ <licenses >
21
21
<license >
22
22
<name >MIT License</name >
23
23
<url >https://opensource.org/license/mit/</url >
24
24
</license >
25
- </licenses >#end
26
-
27
- #if( $hostOnJenkinsGitHub == "true" )<scm child.scm.connection.inherit.append.path=" false" child.scm.developerConnection.inherit.append.path=" false" child.scm.url.inherit.append.path=" false" >
25
+ </licenses >
26
+ <scm child.scm.connection.inherit.append.path=" false" child.scm.developerConnection.inherit.append.path=" false" child.scm.url.inherit.append.path=" false" >
28
27
<connection >scm:git:https://github.com/${gitHubRepo} </connection >
29
28
<developerConnection >scm:git:https://github.com/${gitHubRepo} </developerConnection >
30
29
<tag >${scmTag} </tag >
31
30
<url >https://github.com/${gitHubRepo} </url >
32
- </scm >#end
31
+ </scm >
32
+ #end
33
33
34
34
<properties >
35
35
<revision >1.0</revision >
36
36
<changelist >-SNAPSHOT</changelist >
37
37
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
38
38
<jenkins .version>2.414.3</jenkins .version>
39
- #if( $hostOnJenkinsGitHub == "true" )<gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >#end
39
+ #if( $hostOnJenkinsGitHub == "true" )
40
+ <gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >
41
+ #end
40
42
41
43
<spotless .check.skip>false</spotless .check.skip>
42
44
</properties >
Original file line number Diff line number Diff line change
1
+ groupId =IGNORED
2
+ artifactId =testArtifact
3
+ version =1.0-SNAPSHOT
4
+ package =IGNORED
5
+ hostOnJenkinsGitHub =false
Original file line number Diff line number Diff line change
1
+ install -ntp
Original file line number Diff line number Diff line change 15
15
<packaging >hpi</packaging >
16
16
17
17
<name >TODO Plugin</name >
18
- #if( $hostOnJenkinsGitHub == "true" )< url >https://github.com/jenkinsci/ ${project.artifactId} -plugin</ url >#end
19
-
20
- #if( $hostOnJenkinsGitHub == "true" ) <licenses >
18
+ #if( $hostOnJenkinsGitHub == "true" )
19
+ < url >https://github.com/jenkinsci/ ${project.artifactId} -plugin</ url >
20
+ <licenses >
21
21
<license >
22
22
<name >MIT License</name >
23
23
<url >https://opensource.org/license/mit/</url >
24
24
</license >
25
- </licenses >#end
26
-
27
- #if( $hostOnJenkinsGitHub == "true" )<scm child.scm.connection.inherit.append.path=" false" child.scm.developerConnection.inherit.append.path=" false" child.scm.url.inherit.append.path=" false" >
25
+ </licenses >
26
+ <scm child.scm.connection.inherit.append.path=" false" child.scm.developerConnection.inherit.append.path=" false" child.scm.url.inherit.append.path=" false" >
28
27
<connection >scm:git:https://github.com/${gitHubRepo} </connection >
29
28
<developerConnection >scm:git:https://github.com/${gitHubRepo} </developerConnection >
30
29
<tag >${scmTag} </tag >
31
30
<url >https://github.com/${gitHubRepo} </url >
32
- </scm >#end
31
+ </scm >
32
+ #end
33
33
34
34
<properties >
35
35
<revision >1.0</revision >
36
36
<changelist >-SNAPSHOT</changelist >
37
37
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
38
38
<jenkins .version>2.414.3</jenkins .version>
39
- #if( $hostOnJenkinsGitHub == "true" )<gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >#end
39
+ #if( $hostOnJenkinsGitHub == "true" )
40
+ <gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >
41
+ #end
40
42
41
43
<spotless .check.skip>false</spotless .check.skip>
42
44
</properties >
Original file line number Diff line number Diff line change
1
+ groupId =IGNORED
2
+ artifactId =testArtifact
3
+ version =1.0-SNAPSHOT
4
+ package =io.jenkins.plugins.sample
5
+ hostOnJenkinsGitHub =false
Original file line number Diff line number Diff line change
1
+ install -ntp
Original file line number Diff line number Diff line change 15
15
<packaging >hpi</packaging >
16
16
17
17
<name >TODO Plugin</name >
18
- #if( $hostOnJenkinsGitHub == "true" )< url >https://github.com/jenkinsci/ ${project.artifactId} -plugin</ url >#end
19
-
20
- #if( $hostOnJenkinsGitHub == "true" ) <licenses >
18
+ #if( $hostOnJenkinsGitHub == "true" )
19
+ < url >https://github.com/jenkinsci/ ${project.artifactId} -plugin</ url >
20
+ <licenses >
21
21
<license >
22
22
<name >MIT License</name >
23
23
<url >https://opensource.org/license/mit/</url >
24
24
</license >
25
- </licenses >#end
26
-
27
- #if( $hostOnJenkinsGitHub == "true" )<scm child.scm.connection.inherit.append.path=" false" child.scm.developerConnection.inherit.append.path=" false" child.scm.url.inherit.append.path=" false" >
25
+ </licenses >
26
+ <scm child.scm.connection.inherit.append.path=" false" child.scm.developerConnection.inherit.append.path=" false" child.scm.url.inherit.append.path=" false" >
28
27
<connection >scm:git:https://github.com/${gitHubRepo} </connection >
29
28
<developerConnection >scm:git:https://github.com/${gitHubRepo} </developerConnection >
30
29
<tag >${scmTag} </tag >
31
30
<url >https://github.com/${gitHubRepo} </url >
32
- </scm >#end
31
+ </scm >
32
+ #end
33
33
34
34
<properties >
35
35
<revision >1.0</revision >
36
36
<changelist >-SNAPSHOT</changelist >
37
37
38
38
<!-- https://www.jenkins.io/doc/developer/plugin-development/choosing-jenkins-baseline/ -->
39
39
<jenkins .version>2.414.3</jenkins .version>
40
- #if( $hostOnJenkinsGitHub == "true" )<gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >#end
40
+ #if( $hostOnJenkinsGitHub == "true" )
41
+ <gitHubRepo >jenkinsci/${project.artifactId}-plugin</gitHubRepo >
42
+ #end
41
43
42
44
<spotless .check.skip>false</spotless .check.skip>
43
45
</properties >
Original file line number Diff line number Diff line change
1
+ groupId =IGNORED
2
+ artifactId =testArtifact
3
+ version =1.0-SNAPSHOT
4
+ package =io.jenkins.plugins.sample
5
+ hostOnJenkinsGitHub =false
Original file line number Diff line number Diff line change
1
+ install -ntp
You can’t perform that action at this time.
0 commit comments