Skip to content

Commit

Permalink
Releng changes for jdtls
Browse files Browse the repository at this point in the history
* Fix build due to missing jenkins plugin in jdt.ls JIPP
* Add repository module and publish 3 bundles used by jdt.ls into it
* Publish build to
download.eclipse.org/jdtls/jdt-core-incubator/snapshots
  • Loading branch information
akurtakov authored and rgrunber committed Feb 2, 2024
1 parent 64f269a commit c9c22d8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,23 @@ pipeline {
always {
archiveArtifacts artifacts: '*.log,*/target/work/data/.metadata/*.log,*/tests/target/work/data/.metadata/*.log,apiAnalyzer-workspace/.metadata/*.log', allowEmptyArchive: true
junit '**/target/surefire-reports/*.xml'
discoverGitReferenceBuild referenceJob: 'eclipse.jdt.core-github/master'
recordIssues publishAllIssues:false, tools: [eclipse(pattern: '**/target/compilelogs/*.xml')], qualityGates: [[threshold: 1, type: 'DELTA_NORMAL', unstable: true]], minimumSeverity: 'NORMAL'
recordIssues publishAllIssues:false, tools: [javaDoc()], qualityGates: [[threshold: 1, type: 'DELTA', unstable: true]]
recordIssues publishAllIssues:false, tools: [mavenConsole()], qualityGates: [[threshold: 1, type: 'DELTA_ERROR', unstable: true]]
}
}
}
stage('Deploy') {
when {
branch 'develop'
}
steps {
sshagent ( ['projects-storage.eclipse.org-bot-ssh']) {
sh 'ssh [email protected] rm -rf /home/data/httpd/download.eclipse.org/jdtls/jdt-core-incubator/snapshots'
sh 'ssh [email protected] mkdir -p /home/data/httpd/download.eclipse.org/jdtls/jdt-core-incubator/snapshots'
sh 'scp -r repository/target/repository/* [email protected]:/home/data/httpd/download.eclipse.org/jdtls/jdt-core-incubator/snapshots'
}
}
}
}
}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
<module>org.eclipse.jdt.apt.pluggable.tests</module>
<module>org.eclipse.jdt.apt.tests</module>
<module>org.eclipse.jdt.compiler.apt.tests</module>
<module>repository</module>
</modules>

<build>
Expand Down
9 changes: 9 additions & 0 deletions repository/category.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
<bundle id="org.eclipse.jdt.core.compiler.batch"/>
<bundle id="org.eclipse.jdt.core.compiler.batch.source"/>
<bundle id="org.eclipse.jdt.core"/>
<bundle id="org.eclipse.jdt.core.source"/>
<bundle id="org.eclipse.jdt.apt.core"/>
<bundle id="org.eclipse.jdt.apt.core.source"/>
</site>
20 changes: 20 additions & 0 deletions repository/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2023 Red Hat Inc. and others
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License 2.0
which accompanies this distribution, and is available at
https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>eclipse.jdt.core</artifactId>
<groupId>org.eclipse.jdt</groupId>
<version>4.31.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.jdt.core.repository</artifactId>
<packaging>eclipse-repository</packaging>
</project>

0 comments on commit c9c22d8

Please sign in to comment.