Skip to content

Commit

Permalink
Add jenkins CI (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
DBarthe authored and vroyer committed Dec 4, 2018
1 parent 71b3241 commit 44ed3f5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ ext.enableArtifactSigning = !version.endsWith("SNAPSHOT") && project.hasProperty
ext.repoUsername = { project.hasProperty("repoUsername") ? getProperty("repoUsername") : "" }
ext.repoPassword = { project.hasProperty("repoPassword") ? getProperty("repoPassword") : "" }

// added by strapdata to publish artifact on an internal nexus
if (!project.hasProperty("strapdataNexusUrl")) { ext.strapdataNexusUrl = "" }
if (!project.hasProperty("strapdataNexusUsername")) { ext.strapdataNexusUsername = "" }
if (!project.hasProperty("strapdataNexusPassword")) { ext.strapdataNexusPassword = "" }

Path rootPath = rootDir.toPath()
// setup pom license info, but only for artifacts that are part of elasticsearch
configure(subprojects.findAll { it.projectDir.toPath().startsWith(rootPath) }) {
Expand All @@ -76,6 +81,16 @@ configure(subprojects.findAll { it.projectDir.toPath().startsWith(rootPath) }) {
// we only use maven publish to add tasks for pom generation
plugins.withType(MavenPublishPlugin).whenPluginAdded {
publishing {
repositories {
maven {
name "deploy"
url strapdataNexusUrl
credentials {
username = strapdataNexusUsername
password = strapdataNexusPassword
}
}
}
publications {
// add license information to generated poms
all {
Expand Down

0 comments on commit 44ed3f5

Please sign in to comment.