forked from ome/omero-insight
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
38 lines (34 loc) · 1.02 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
pipeline {
agent {
label 'testintegration'
}
environment {
// Default credentials for testing on devspace
MAVEN_SNAPSHOTS_REPO_URL = 'http://nexus:8081/nexus/repository/maven-internal/'
MAVEN_USER = 'admin'
MAVEN_PASSWORD = 'admin123'
// Disable Gradle daemon
GRADLE_OPTS = '-Dorg.gradle.daemon=false'
}
stages {
stage('Build') {
steps {
// Currently running on a build node with multiple jobs so incorrect jar may be cached
// (Moving to Docker should fix this)
sh 'gradle --init-script init-ci.gradle publishToMavenLocal build --refresh-dependencies'
}
}
stage('Deploy') {
steps {
sh 'gradle --init-script init-ci.gradle publish'
archiveArtifacts artifacts: 'build/distributions/*.zip'
}
}
}
post {
always {
// Cleanup workspace
deleteDir()
}
}
}