Commit 797f8c85 authored by Maxim Nesen's avatar Maxim Nesen Committed by Lukas Jungmann
Browse files

JIPP migration

Signed-off-by: default avatarMaxim Nesen <maxim.nesen@oracle.com>
parent c5b2f2c2
......@@ -20,11 +20,9 @@
// 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)
// SETTINGS_XML_ID - Jenkins ID of settings.xml file
// SETTINGS_SEC_XML_ID - Jenkins ID of settings-security.xml file
pipeline {
agent any
tools {
......@@ -63,26 +61,16 @@ pipeline {
// Perform release
stage('Build') {
steps {
configFileProvider([
configFile(
fileId: SETTINGS_XML_ID,
targetLocation: '/home/jenkins/.m2/settings.xml'
),
configFile(
fileId: SETTINGS_SEC_XML_ID,
targetLocation: '/home/jenkins/.m2/'
)]) {
sshagent([SSH_CREDENTIALS_ID]) {
sh '''
etc/jenkins/continuous.sh
'''
}
sshagent([SSH_CREDENTIALS_ID]) {
sh '''
etc/jenkins/continuous.sh
'''
}
junit '**/target/surefire-reports/*.xml'
recordIssues(tools: [spotBugs(useRankAsPriority: true)])
}
}
}
}
......@@ -18,11 +18,9 @@
// 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)
// SETTINGS_XML_ID - Jenkins ID of settings.xml file
// SETTINGS_SEC_XML_ID - Jenkins ID of settings-security.xml file
pipeline {
agent any
tools {
......@@ -60,25 +58,14 @@ pipeline {
// Perform release
stage('Release') {
steps {
configFileProvider([
configFile(
fileId: SETTINGS_XML_ID,
targetLocation: '/home/jenkins/.m2/settings.xml'
),
configFile(
fileId: SETTINGS_SEC_XML_ID,
targetLocation: '/home/jenkins/.m2/'
)]) {
sshagent([SSH_CREDENTIALS_ID]) {
sh '''
etc/jenkins/release.sh "${API_VERSION}" "${NEXT_API_VERSION}" \
"${DRY_RUN}" "${OVERWRITE}"
'''
}
}
sshagent([SSH_CREDENTIALS_ID]) {
sh '''
etc/jenkins/release.sh "${API_VERSION}" "${NEXT_API_VERSION}" \
"${DRY_RUN}" "${OVERWRITE}"
'''
}
}
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment