-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
65 lines (60 loc) · 2.81 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
59
60
61
62
63
64
65
pipeline {
agent { label 'windows' }
options {
buildDiscarder(logRotator(numToKeepStr:'10'))
timeout(time: 15, unit: 'MINUTES')
skipDefaultCheckout()
copyArtifactPermission('*');
}
stages {
stage ('Build') {
steps {
checkout([$class: 'GitSCM', branches: scm.branches, extensions: scm.extensions + [[$class: 'CleanCheckout']], userRemoteConfigs: scm.userRemoteConfigs])
script {
withEnv(["PATH+ANT=${tool name: 'Ant 1.10', type: 'hudson.tasks.Ant$AntInstallation'}/bin", "DLC=${tool name: 'OpenEdge-12.8', type: 'jenkinsci.plugin.openedge.OpenEdgeInstallation'}"]) {
bat "git rev-parse --short HEAD > src/git.txt"
bat "ant -DVERSION=12.8 -DDLC=%DLC% -lib C:\\Tools\\PCT\\PCT-Latest.jar dist"
}
}
stash name: 'windows-build', includes: 'TestApp3.zip'
stash name: 'linux-build', includes: 'linux.zip'
archiveArtifacts artifacts: 'TestApp*.zip'
}
}
stage ('WebClient') {
steps {
script {
withEnv(["PATH+JDK=${tool name: 'JDK17', type: 'jdk'}/bin"]) {
bat "java -jar C:\\Tools\\pdo\\groovy-pdo-2.8.1.jar version-java17.groovy \"https://pdo.riverside-software.fr\" \"Riverside\" \"TestAppGroovy12864\" \"TestApp3.zip\" \"12.8\" \"C:\\FooBar\" \"1\" || exit /b 1"
bat "java -jar C:\\Tools\\pdo\\groovy-pdo-2.8.1.jar delete-java17.groovy \"https://pdo.riverside-software.fr\" \"Riverside\" \"TestAppGroovy12864\" 5 || exit /b 1"
bat "java -jar C:\\Tools\\pdo\\groovy-pdo-2.8.1.jar version-java17.groovy \"https://pdo.riverside-software.fr\" \"Riverside\" \"TestAppGroovy128\" \"TestApp3.zip\" \"12.8\" \"C:\\FooBar\" \"0\" || exit /b 1"
bat "java -jar C:\\Tools\\pdo\\groovy-pdo-2.8.1.jar delete-java17.groovy \"https://pdo.riverside-software.fr\" \"Riverside\" \"TestAppGroovy128\" 5 || exit /b 1"
// bat "echo Disabled for now..."
// rem Z:\Tools\signtool\signtool.exe sign /t http://timestamp.comodoca.com/authenticode /f Z:\Jenkins\comodo.p12 /p "%COMODO_PASSWORD%" /path/to/bundle.exe
}
}
}
}
// stage ('deployment') {
// steps {
// node ('windows') {
// ws ("Z:\\TestDeployment\\${BRANCH_NAME}") {
// unstash name: 'windows-build'
// unzip zipFile: 'TestApp3.zip'
// bat 'del TestApp3.zip'
// withEnv(["DLC=${tool name: 'OpenEdge-11.7', type: 'jenkinsci.plugin.openedge.OpenEdgeInstallation'}"]) {
// bat "echo OK..."
// }
// }
// }
// node ('linux') {
// ws ("/ebs/ebs1/TestDeployment/${BRANCH_NAME}") {
// unstash name: 'linux-build'
// unzip zipFile: 'linux.zip'
// sh 'rm linux.zip'
// }
// }
// }
// }
}
}