-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make eclipselink asm standalone project (#1054)
and let eclipselink depend on it as a library Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
- Loading branch information
Showing
24 changed files
with
920 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved. | ||
// | ||
// This program and the accompanying materials are made available under the | ||
// terms of the Eclipse Distribution License v. 1.0, which is available at | ||
// http://www.eclipse.org/org/documents/edl-v10.php. | ||
// or the Eclipse Distribution License v. 1.0 which is available at | ||
// http://www.eclipse.org/org/documents/edl-v10.php. | ||
// | ||
// SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause | ||
|
||
// Job input parameters: | ||
// GIT_BRANCH_RELEASE - Branch to release | ||
|
||
// Job internal argumets: | ||
// GIT_USER_NAME - Git user name (for commits) | ||
// GIT_USER_EMAIL - Git user e-mail (for commits) | ||
// SSH_CREDENTIALS_ID - Jenkins ID of SSH credentials | ||
// GPG_CREDENTIALS_ID - Jenkins ID of GPG credentials (stored as KEYRING variable) | ||
|
||
pipeline { | ||
|
||
agent any | ||
|
||
tools { | ||
jdk 'openjdk-jdk11-latest' | ||
maven 'apache-maven-latest' | ||
} | ||
|
||
environment { | ||
ASM_DIR="${WORKSPACE}/plugins/org.eclipse.persistence.asm" | ||
} | ||
|
||
stages { | ||
// Initialize build environment | ||
stage('Init') { | ||
steps { | ||
git branch: GIT_BRANCH_RELEASE, credentialsId: SSH_CREDENTIALS_ID, url: GIT_REPOSITORY_URL | ||
withCredentials([file(credentialsId: 'secret-subkeys.asc', variable: 'KEYRING')]) { | ||
sh label: '', script: ''' | ||
gpg --batch --import "${KEYRING}" | ||
for fpr in $(gpg --list-keys --with-colons | awk -F: \'/fpr:/ {print $10}\' | sort -u); | ||
do | ||
echo -e "5\\ny\\n" | gpg --batch --command-fd 0 --expert --edit-key $fpr trust; | ||
done''' | ||
} | ||
// Git configuration | ||
sh ''' | ||
git config --global user.name "${GIT_USER_NAME}" | ||
git config --global user.email "${GIT_USER_EMAIL}" | ||
''' | ||
} | ||
} | ||
// Perform release | ||
stage('Build') { | ||
steps { | ||
sshagent([SSH_CREDENTIALS_ID]) { | ||
sh ''' | ||
etc/jenkins/build_asm.sh | ||
''' | ||
} | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash -e | ||
# | ||
# Copyright (c) 2021 Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program and the accompanying materials are made available under the | ||
# terms of the Eclipse Public License v. 2.0 which is available at | ||
# http://www.eclipse.org/legal/epl-2.0, | ||
# or the Eclipse Distribution License v. 1.0 which is available at | ||
# http://www.eclipse.org/org/documents/edl-v10.php. | ||
# | ||
# SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause | ||
# | ||
# Arguments: | ||
# N/A | ||
|
||
echo '-[ EclipseLink ASM Build ]-----------------------------------------------' | ||
(cd ${ASM_DIR} && \ | ||
mvn clean install -Poss-release) |
Oops, something went wrong.