diff --git a/server_build/buildcontainer/jenkins.updatedownloadwww b/server_build/buildcontainer/jenkins.updatedownloadwww new file mode 100644 index 00000000..43b76467 --- /dev/null +++ b/server_build/buildcontainer/jenkins.updatedownloadwww @@ -0,0 +1,72 @@ +//The download page (https://download.eclipse.org/amlen) is different to the main Amlen website +//(https://www.eclipse.org/amlen). The main website has it's own git repo. The downloads page +//can only be updated (as far as I can tell) from the Jenkins for the main product source repo. +//Thus this jenkins script which copes the simple download page files from the product source +//to the Eclipse download server +pipeline { + + parameters{ + gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'branchName', type: 'PT_BRANCH',description: 'Branch to get the websites/download HTML Download page(s) from' + } + + agent { + kubernetes { + label "amlen-downloadwww-update-pod" + yaml """ +apiVersion: v1 +kind: Pod +spec: + containers: + - name: jnlp + resources: + limits: + memory: "300Mi" + cpu: "200m" + requests: + memory: "300Mi" + cpu: "200m" + volumeMounts: + - name: volume-known-hosts + mountPath: /home/jenkins/.ssh + volumes: + - name: volume-known-hosts + configMap: + name: known-hosts +""" + } + } + + + + stages { + stage('DeployDownloadWWW') { + steps { + container('jnlp') { + sshagent ( ['projects-storage.eclipse.org-bot-ssh']) { + sh ''' + pwd + echo ${GIT_BRANCH} + NOORIGIN_BRANCH=${GIT_BRANCH#origin/} # turns origin/master into master + scp -o BatchMode=yes -r websites/download/* genie.amlen@projects-storage.eclipse.org:/home/data/httpd/download.eclipse.org/amlen/ + ''' + } + } + } + } + } + post { + // send a mail on unsuccessful and fixed builds + unsuccessful { // means unstable || failure || aborted + emailext subject: 'Build $BUILD_STATUS $PROJECT_NAME #$BUILD_NUMBER!', + body: '''Check console output at $BUILD_URL to view the results.''', + recipientProviders: [culprits(), requestor()], + to: 'levell@uk.ibm.com' + } + fixed { // back to normal + emailext subject: 'Build $BUILD_STATUS $PROJECT_NAME #$BUILD_NUMBER!', + body: '''Check console output at $BUILD_URL to view the results.''', + recipientProviders: [culprits(), requestor()], + to: 'levell@uk.ibm.com' + } + } +} diff --git a/websites/download/downloads.css b/websites/download/downloads.css new file mode 100644 index 00000000..9f56f2a0 --- /dev/null +++ b/websites/download/downloads.css @@ -0,0 +1,30 @@ +/* Sidebars style based on https://every-layout.dev/layouts/sidebar/ */ + +.mainpage { + display: flex; + flex-wrap: wrap; + gap: var(--s1); + font-family: Arial, Helvetica, sans-serif; +} + +.mainpage > :first-child { + flex-grow: 1; + background: #cccccc; + padding: 1em; +} + +.mainpage > :last-child { + flex-basis: 0; + flex-grow: 999; + min-inline-size: 50%; + padding-left: 1em; + padding-right: 1em; +} + +#maincontent > h1 { + background: #4444aa; + color: #ffffff; + padding: 0.5em; + font-family: Arial, Helvetica, sans-serif; + margin-top: 0px; + } diff --git a/websites/download/index.html b/websites/download/index.html new file mode 100644 index 00000000..927e1b41 --- /dev/null +++ b/websites/download/index.html @@ -0,0 +1,52 @@ + + + +Eclipse Amlen Downloads + + + +
+ +
+

Eclipse Amlen™ Downloads

+ +

1.0 Release Candidate 1 (1.0rc1)

+ +

1.0rc1 is now available!

+ + +

Older Releases

+

Older Releases can be seen here (or in the archives)

+ +

Snapshot Builds

+

Snapshot builds of dev branches are also available. Some older snapshot may be available in the archives

+
+
+ +