@@ -8,7 +8,6 @@ pipeline {
8
8
pollSCM(' H/5 * * * *' )
9
9
}
10
10
parameters {
11
- booleanParam(name : ' CLEAN_INTEGRATION' , defaultValue : false , description : ' Attention: Cleans the integration folder with all branches completely.' )
12
11
booleanParam(name : ' CODESIGN' , defaultValue : false , description : ' Sign the artifacts.' )
13
12
booleanParam(name : ' PUBLISH_PRODUCTS' , defaultValue : false , description : ' Copy to the compiled products for Windows, macOS and Linux' )
14
13
}
@@ -24,7 +23,7 @@ pipeline {
24
23
buildDiscarder(logRotator(numToKeepStr : ' 5' , artifactNumToKeepStr : ' 1' ))
25
24
}
26
25
stages {
27
- stage(' build ' ) {
26
+ stage(' Build ' ) {
28
27
steps {
29
28
sh """
30
29
mvn -B ${ params.CODESIGN ? '-P eclipse-sign' : ''} \\
@@ -39,38 +38,19 @@ pipeline {
39
38
archiveArtifacts ' chemclipse/products/org.eclipse.chemclipse.rcp.compilation.community.product/target/products/*.zip,chemclipse/products/org.eclipse.chemclipse.rcp.compilation.community.product/target/products/*.tar.gz'
40
39
}
41
40
}
42
- stage(' clean integration' ) {
43
- when {
44
- environment name : ' CLEAN_INTEGRATION' , value : ' true'
45
- }
46
- steps {
47
- sshagent ( [' projects-storage.eclipse.org-bot-ssh' ]) {
48
- sh
" ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/chemclipse/integration/"
49
- }
50
- }
51
- }
52
- stage(' clean deploy' ) {
53
- when {
54
- environment name : ' CLEAN_WORKSPACE' , value : ' true'
55
- }
56
- steps {
57
- sshagent ( [' projects-storage.eclipse.org-bot-ssh' ]) {
58
- sh
" ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/chemclipse/integration/${ BRANCH_NAME} "
59
- }
60
- }
61
- }
62
- stage(' deploy' ) {
41
+ stage(' Deploy' ) {
63
42
steps {
64
43
sshagent ( [' projects-storage.eclipse.org-bot-ssh' ]) {
65
44
sh '''
45
+ ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/chemclipse/integration/${BRANCH_NAME}
66
46
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/chemclipse/integration/${BRANCH_NAME}/repository
67
47
ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/chemclipse/integration/${BRANCH_NAME}/downloads
68
48
scp -r chemclipse/sites/chemclipse/target/repository/* [email protected] :/home/data/httpd/download.eclipse.org/chemclipse/integration/${BRANCH_NAME}/repository
69
49
'''
70
50
}
71
51
}
72
52
}
73
- stage(' publish ' ) {
53
+ stage(' Publish ' ) {
74
54
when {
75
55
environment name : ' PUBLISH_PRODUCTS' , value : ' true'
76
56
}
0 commit comments