-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
58 lines (52 loc) · 1.64 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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('Versions') {
steps {
sh 'echo Disable versions copy until needed'
}
}
stage('Build') {
steps {
sh """
rm -rf OMERO.server*
"""
copyArtifacts(projectName: 'OMERO-build', flatten: true, filter: '**/OMERO.server*zip')
sh """
# Attempt to fix utf-8 failures
export LANG='en_US.UTF-8'
export LANGUAGE='en_US:en'
export LC_ALL='en_US.UTF-8'
unzip OMERO.server*zip
rm -rf OMERO.server*.zip
ln -s OMERO.server* OMERO.server
cd ${env.WORKSPACE}/ome-documentation
./autogen_omero.sh
"""
archiveArtifacts artifacts: '*/omero/_build/OMERO.doc*zip*'
}
}
stage('Deploy') {
steps {
sh 'echo see https://help.sonatype.com/repomanager3/formats/pypi-repositories'
sh 'echo was gradle --init-script init-ci.gradle publish'
}
}
}
post {
always {
// Cleanup workspace
deleteDir()
}
}
}