Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

releng: Add Jenkins files and pod configuration #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions releng/jenkins/pod-templates/tracecompass-pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
apiVersion: v1
kind: Pod
spec:
containers:
- name: tracecompass
image: eclipse/tracecompass-build-env:18.04
imagePullPolicy: Always
tty: true
command: [ "/bin/sh" ]
args: ["-c", "/home/tracecompass/.vnc/xstartup.sh && cat"]
resources:
requests:
memory: "2.6Gi"
cpu: "1.3"
limits:
memory: "2.6Gi"
cpu: "1.3"
volumeMounts:
- name: settings-xml
mountPath: /home/jenkins/.m2/settings.xml
subPath: settings.xml
readOnly: true
- name: m2-repo
mountPath: /home/jenkins/.m2/repository
- name: tools
mountPath: /opt/tools
- name: jnlp
image: 'eclipsecbi/jenkins-jnlp-agent'
volumeMounts:
- mountPath: /home/jenkins/.ssh
name: volume-known-hosts
volumes:
- name: volume-known-hosts
configMap:
name: known-hosts
- name: settings-xml
secret:
secretName: m2-secret-dir
items:
- key: settings.xml
path: settings.xml
- name: m2-repo
emptyDir: {}
- name: tools
persistentVolumeClaim:
claimName: tools-claim-jiro-tracecompass
48 changes: 48 additions & 0 deletions releng/jenkins/tracecompass-jdk17-core-only.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*******************************************************************************
* Copyright (c) 2024 Ericsson.
*
* 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
*******************************************************************************/
pipeline {
agent {
kubernetes {
label 'tracecompass-build'
yamlFile 'releng/jenkins/pod-templates/tracecompass-pod.yaml'
}
}
options {
timestamps()
timeout(time: 4, unit: 'HOURS')
disableConcurrentBuilds()
}
tools {
maven 'apache-maven-3.9.5'
jdk 'openjdk-jdk17-latest'
}
environment {
MAVEN_OPTS="-Xms768m -Xmx4096m -XX:+UseSerialGC"
TEST_OPTS="-Dskip-short-tc-ui-tests=true -Dskip-long-tc-ui-tests=true -Djdk.version=17 -Djdk.release=17"
}
stages {
stage('Build') {
steps {
container('tracecompass') {
sh 'mvn clean install -B -Pctf-grammar -Pbuild-rcp -Dmaven.repo.local=/home/jenkins/.m2/repository --settings /home/jenkins/.m2/settings.xml ${MAVEN_ARGS} ${TEST_OPTS}'
}
}
post {
always {
container('tracecompass') {
junit '*/*/target/surefire-reports/*.xml'
archiveArtifacts artifacts: '*/*tests/screenshots/*.jpeg,*/*tests/target/work/data/.metadata/.log', excludes: '**/org.eclipse.tracecompass.common.core.log', allowEmptyArchive: true
}
}
}
}
}
}
48 changes: 48 additions & 0 deletions releng/jenkins/tracecompass-jdk17-long-ui-only.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*******************************************************************************
* Copyright (c) 2024 Ericsson.
*
* 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
*******************************************************************************/
pipeline {
agent {
kubernetes {
label 'tracecompass-build'
yamlFile 'releng/jenkins/pod-templates/tracecompass-pod.yaml'
}
}
options {
timestamps()
timeout(time: 4, unit: 'HOURS')
disableConcurrentBuilds()
}
tools {
maven 'apache-maven-3.9.5'
jdk 'openjdk-jdk17-latest'
}
environment {
MAVEN_OPTS="-Xms768m -Xmx4096m -XX:+UseSerialGC"
TEST_OPTS="-Dskip-tc-core-tests=true -Dskip-short-tc-ui-tests=true -Dskip-rcp=true -Djdk.version=17 -Djdk.release=17"
}
stages {
stage('Build') {
steps {
container('tracecompass') {
sh 'mvn clean install -B -Pctf-grammar -Pbuild-rcp -Dmaven.repo.local=/home/jenkins/.m2/repository --settings /home/jenkins/.m2/settings.xml ${MAVEN_ARGS} ${TEST_OPTS}'
}
}
post {
always {
container('tracecompass') {
junit '*/*/target/surefire-reports/*.xml'
archiveArtifacts artifacts: '*/*tests/screenshots/*.jpeg,*/*tests/target/work/data/.metadata/.log', excludes: '**/org.eclipse.tracecompass.common.core.log', allowEmptyArchive: true
}
}
}
}
}
}
48 changes: 48 additions & 0 deletions releng/jenkins/tracecompass-jdk17-short-ui-only.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*******************************************************************************
* Copyright (c) 2024 Ericsson.
*
* 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
*******************************************************************************/
pipeline {
agent {
kubernetes {
label 'tracecompass-build'
yamlFile 'releng/jenkins/pod-templates/tracecompass-pod.yaml'
}
}
options {
timestamps()
timeout(time: 4, unit: 'HOURS')
disableConcurrentBuilds()
}
tools {
maven 'apache-maven-3.9.5'
jdk 'openjdk-jdk17-latest'
}
environment {
MAVEN_OPTS="-Xms768m -Xmx4096m -XX:+UseSerialGC"
TEST_OPTS="-Dskip-tc-core-tests=true -Dskip-long-tc-ui-tests=true -Dskip-rcp=true -Djdk.version=17 -Djdk.release=17"
}
stages {
stage('Build') {
steps {
container('tracecompass') {
sh 'mvn clean install -B -Pctf-grammar -Pbuild-rcp -Dmaven.repo.local=/home/jenkins/.m2/repository --settings /home/jenkins/.m2/settings.xml ${MAVEN_ARGS} ${TEST_OPTS}'
}
}
post {
always {
container('tracecompass') {
junit '*/*/target/surefire-reports/*.xml'
archiveArtifacts artifacts: '*/*tests/screenshots/*.jpeg,*/*tests/target/work/data/.metadata/.log', excludes: '**/org.eclipse.tracecompass.common.core.log', allowEmptyArchive: true
}
}
}
}
}
}