Index: Jenkinsfile =================================================================== diff -u --- Jenkinsfile (revision 0) +++ Jenkinsfile (revision 096fca5bd06ae4ed88e372af0835f5a6673c2159) @@ -0,0 +1,27 @@ +pipeline { + agent any + options { + buildDiscarder logRotator(numToKeepStr: '4') + } + tools { + gradle 'Gradle-3.1' + jdk 'jdk-8' + } + stages { + stage ('Build') { + steps { + checkout scm + sh "gradle -Dgrails.env=production --no-daemon clean" + //sh "gradle -Dgrails.env=test --no-daemon check" + sh "gradle -Dgrails.env=production --no-daemon assemble --refresh-dependencies" + } + post { + success { + // The artifact is named $project.projectDir which could be any number of things on Jenkins + archiveArtifacts(artifacts: "build/libs/*.war", fingerprint: true) + } + } + } + } +} + Index: build.gradle =================================================================== diff -u -r5138780a9744d59d13bf75fe1a83f1b4c1329a40 -r096fca5bd06ae4ed88e372af0835f5a6673c2159 --- build.gradle (.../build.gradle) (revision 5138780a9744d59d13bf75fe1a83f1b4c1329a40) +++ build.gradle (.../build.gradle) (revision 096fca5bd06ae4ed88e372af0835f5a6673c2159) @@ -1,7 +1,7 @@ buildscript { repositories { mavenLocal() - maven { url 'http://workhorse.lemanscorp.com/nexus/content/groups/public/' } + maven { url 'https://workhorse.lemanscorp.com/nexus/repository/public/' } } dependencies { classpath "org.grails:grails-gradle-plugin:$grailsVersion" @@ -30,7 +30,7 @@ repositories { mavenLocal() - maven { url 'http://workhorse.lemanscorp.com/nexus/content/groups/public/' } + maven { url 'https://workhorse.lemanscorp.com/nexus/repository/public/' } } dependencyManagement { Index: settings.gradle =================================================================== diff -u --- settings.gradle (revision 0) +++ settings.gradle (revision 096fca5bd06ae4ed88e372af0835f5a6673c2159) @@ -0,0 +1,2 @@ +rootProject.name = 'correspondence-service' +