Skip to content
Closed
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
15 changes: 7 additions & 8 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ pipeline {
agent {
label 'centos-latest'
}
tools {
jdk 'openjdk-jdk17-latest'
maven 'apache-maven-latest'
}
environment {
MAVEN_OPTS = "-Xmx4G"
PR_VALIDATION_BUILD = "true"
Expand Down Expand Up @@ -277,11 +281,6 @@ pipeline {
}
}
stage('Build') {
tools {
// Define tools only in this stage to not interfere with default environemts of SWT-natives build-agents
jdk 'openjdk-jdk17-latest'
maven 'apache-maven-latest'
}
steps {
xvnc(useXauthority: true) {
dir('eclipse.platform.swt') {
Expand Down Expand Up @@ -317,14 +316,14 @@ pipeline {
echo "newSWTNativesTag: ${newSWTNativesTag}"
sh """
# Check for the master-branch as late as possible to have as much of the same behaviour as possible
if [[ '${BRANCH_NAME}' == master ]] || [[ '${BRANCH_NAME}' =~ R[0-9]+_[0-9]+(_[0-9]+)?_maintenance ]]; then
if [[ '${BRANCH_NAME}' == PR-975 ]] || [[ '${BRANCH_NAME}' =~ R[0-9]+_[0-9]+(_[0-9]+)?_maintenance ]]; then
if [[ ${params.skipCommit} != true ]]; then

#Don't rebase and just fail in case another commit has been pushed to the master/maintanance branch in the meantime

pushd eclipse.platform.swt
git push origin HEAD:refs/heads/${BRANCH_NAME}
git push origin refs/tags/${newSWTNativesTag}
git push -f origin HEAD:refs/heads/test-common-tools
#git push origin refs/tags/${newSWTNativesTag}
popd

exit 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# Contributors:
# IBM Corporation - initial API and implementation
#*******************************************************************************
# Dummy change

maj_ver=4
min_ver=964
Expand Down