Never launch the Gradle daemon
Since we are using separate containers for each pipeline stage, the daemons get nicked once the stage is done. Why bother having them?
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -9,7 +9,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh './gradlew build'
|
sh './gradlew build --no-daemon'
|
||||||
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
archiveArtifacts 'proxy/build/libs/*-all.jar,api/build/libs/*-all.jar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -27,7 +27,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish'
|
sh 'export MAVEN_DEPLOYMENT=true; ./gradlew publish --no-daemon'
|
||||||
sh 'rsync -av --delete ./api/build/docs/javadoc/ /javadoc'
|
sh 'rsync -av --delete ./api/build/docs/javadoc/ /javadoc'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user