File tree Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Expand file tree Collapse file tree 2 files changed +18
-14
lines changed Original file line number Diff line number Diff line change @@ -150,3 +150,17 @@ It must match the name of the build on the download server.
150150 }
151151}
152152
153+ pipelineJob(' Releng/updateIndex' ){
154+ displayName(' Update Download Index' )
155+ description(' Recreates the Eclipse download page index.' )
156+ definition {
157+ cpsScm {
158+ lightweight(true )
159+ scm {
160+ github(' eclipse-platform/eclipse.platform.releng.aggregator' , ' master' )
161+ }
162+ scriptPath(' JenkinsJobs/Releng/updateIndex.jenkinsfile' )
163+ }
164+ }
165+ }
166+
Original file line number Diff line number Diff line change 1- pipelineJob(' Releng/updateIndex' ){
2- displayName(' Update Download Index' )
3- description(' This is a Job for recreating the download index.' )
4- definition {
5- cps {
6- sandbox()
7- script('''
81pipeline {
92 options {
3+ skipDefaultCheckout()
104 timestamps()
115 buildDiscarder(logRotator(numToKeepStr:'10'))
126 }
@@ -15,23 +9,19 @@ pipeline {
159 }
1610 stages {
1711 stage('Update index'){
18- steps { // workspace is not always cleaned by default. Clean before custom tools are installed into workspace.
12+ steps {
1913 sshagent(['projects-storage.eclipse.org-bot-ssh']) {
20- sh \ ' ''#!/bin/bash -xe
14+ sh '''#!/bin/bash -xe
2115 PHP_PAGE="createIndex4x.php"
2216 HTML_PAGE="index.html"
2317 TEMP_INDEX="tempIndex.html"
2418
2519 wget --no-verbose -O ${TEMP_INDEX} https://download.eclipse.org/eclipse/downloads/${PHP_PAGE} 2>&1
2620
2721 scp ${TEMP_INDEX}
[email protected] :/home/data/httpd/download.eclipse.org/eclipse/downloads/${HTML_PAGE}
28- \ ' ''
22+ '''
2923 }
3024 }
3125 }
3226 }
3327}
34- ''' )
35- }
36- }
37- }
You can’t perform that action at this time.
0 commit comments