Move integration into a file
This commit is contained in:
parent
61f8adacee
commit
1b788d1271
12
build.gradle
12
build.gradle
|
@ -1,13 +1,11 @@
|
||||||
|
apply plugin: 'maven'
|
||||||
apply plugin: 'groovy'
|
apply plugin: 'groovy'
|
||||||
|
|
||||||
|
if (System.env['Jenkins.Repository']) {
|
||||||
|
apply from: 'gradle/integration.gradle'
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
||||||
if (System.env['Jenkins.Repository']) {
|
|
||||||
maven {
|
|
||||||
url System.env['Jenkins.Repository']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
* Handle installing our artifacts into the Jenkins local repository for integration testing
|
||||||
|
* <https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Maven+Repository+Server>
|
||||||
|
*/
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url System.env['Jenkins.Repository']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
uploadArchives {
|
||||||
|
repositories {
|
||||||
|
mavenDeployer {
|
||||||
|
repository(url: System.env['Jenkins.Repository'])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue