Skip to content

2.6.16 #1

Merged
merged 33 commits into from Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
4d58adc
Release 2.6.6
credman Jan 13, 2022
200ae9a
Fix grouper pgp credentialId
credman Jan 13, 2022
a40d3e1
Fix credentialId references
credman Jan 13, 2022
30ae97a
Adjust git checkout
credman Jan 13, 2022
60f28c9
WIP gpg fails if importing an existing key
credman Jan 13, 2022
e9d6189
WIP gpg fails if importing an existing key
credman Jan 13, 2022
8e6728b
Release 2.6.6
credman Feb 16, 2022
d2681a5
Change gpg key to last 8 characters for older gpg compatibility
credman Feb 16, 2022
541e0b2
debug java
chubing Feb 16, 2022
760c66f
Update maven id to match server
credman Feb 16, 2022
bec6f63
Merge branch '2.6.6' of https://github.internet2.edu/internet2/groupe…
credman Feb 16, 2022
db32fb1
Set JAVA_HOME
credman Feb 16, 2022
6418db9
Set JAVA_HOME (commit 2)
credman Feb 16, 2022
7fd9dc3
java_home try 3
chubing Feb 16, 2022
60dd7a7
Update Jenkinsfile
chubing Feb 16, 2022
9d478f2
Update Jenkinsfile
chubing Feb 16, 2022
957f3b7
Update Jenkinsfile
chubing Feb 16, 2022
5b6321b
Update Jenkinsfile
chubing Feb 16, 2022
570f088
Update Jenkinsfile
chubing Feb 16, 2022
3f59ce5
JAVA_HOME workaround for maven
chubing Feb 16, 2022
c12df30
Syntax error in GPG_KEY variable
credman Feb 16, 2022
3bc4418
Fix syntax
credman Feb 16, 2022
1742da6
2.6.7
mchyzer Feb 18, 2022
e1acf13
2.6.8
mchyzer Mar 2, 2022
ac1f8f9
2.6.9
mchyzer Jun 7, 2022
cd7aa90
java version
mchyzer Jun 7, 2022
bf4d9ff
2.6.10
mchyzer Jul 20, 2022
707babb
2.6.11
mchyzer Jul 26, 2022
5fe3321
release
mchyzer Jul 26, 2022
919f97f
2.6.13
mchyzer Jul 27, 2022
4ddedf5
build 2.6.14
mchyzer Aug 10, 2022
60becf0
build
mchyzer Aug 15, 2022
05e48d8
2.6.16
mchyzer Sep 22, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
/.project
11 changes: 11 additions & 0 deletions .project
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>grouper_build_v2_6</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
</buildSpec>
<natures>
</natures>
</projectDescription>
40 changes: 26 additions & 14 deletions Jenkinsfile
@@ -1,27 +1,37 @@
def repo = 'git@github.com:Internet2/grouper.git'
def gpg_key = '1D3F3E9E30C7F312'
def repo = 'https://github.com/Internet2/grouper.git'
def jdk_id = 'Corretto-JDK8'
def maven_id = 'Maven-3.8.4'
def java_home = '/home/centos/agent/tools/hudson.model.JDK/Corretto-JDK8/amazon-corretto-8.342.07.4-linux-x64'
def maven_id = 'maven'
def gpg_cred_id = 'grouper-gpg-key'
def sonatype_cred_id = 'grouper-sonatype-login'
def gpg_key = '30C7F312'

def git_tag = env.TAG_NAME ?: env.BRANCH_NAME
def tag_pattern = /^(\d+\.\d+\.\w+)$/
def grouper_src_branch = "GROUPER_RELEASE_${git_tag}"

node('docker') {

if (git_tag ==~ tag_pattern ) {
environment {
JAVA_HOME=java_home
}
stage("PgpImport") {
withCredentials([file(credentialsId: 'grouper-pgp', variable: 'GPG_KEYS')]) {
sh 'gpg --keyring=pubring.gpg --no-default-keyring --import $GPG_KEYS'
withCredentials([file(credentialsId: gpg_cred_id, variable: 'GPG_KEYS')]) {
sh 'gpg --version'
sh 'gpg --keyring=pubring.gpg --no-default-keyring --import $GPG_KEYS || true'
sh 'echo $JAVA_HOME'
sh 'java --version'
}
}

stage("Checkout") {
checkout_result = checkout([
$class: 'GitSCM',
branches: [[name: grouper_src_branch]],
extensions: [
[$class: 'LocalBranch'], [$class: 'WipeWorkspace'],
[$class: 'CloneOption', depth: 1, noTags: false, reference: '', shallow: true],
[$class: 'LocalBranch'],
[$class: 'WipeWorkspace'],
[$class: 'CloneOption', noTags: false, shallow: true],
],
userRemoteConfigs: [[url: repo]]
]
Expand All @@ -32,37 +42,39 @@ node('docker') {
def grouper_version = (git_tag =~ tag_pattern)[0][1]

println "Extracted grouper version '${grouper_version}' from input '${git_tag}'"

sh 'echo JAVA_HOME=$JAVA_HOME'
withMaven(
maven: maven_id,
mavenSettingsFilePath: "travis/mvn.settings.xml",
jdk: jdk_id
) {
sh "mvn -f grouper-parent versions:set -DnewVersion=${grouper_version}"
sh "JAVA_HOME=${java_home} mvn -f grouper-parent versions:set -DnewVersion=${grouper_version}"
}
}

stage('Build') {
sh 'echo JAVA_HOME=$JAVA_HOME'
withMaven(
maven: maven_id,
mavenSettingsFilePath: "travis/mvn.settings.xml",
mavenOpts: '-Xmx2048m',
jdk: jdk_id
) {
sh "mvn -f grouper-parent clean compile package"
sh "JAVA_HOME=${java_home} mvn -f grouper-parent clean compile package"
}
}

stage('Release') {
withCredentials([usernamePassword(credentialsId: 'grouper-sonatype-login', usernameVariable: 'SONATYPE_USER', passwordVariable: 'SONATYPE_PWD')]) {
withCredentials([usernamePassword(credentialsId: sonatype_cred_id, usernameVariable: 'SONATYPE_USER', passwordVariable: 'SONATYPE_PWD')]) {
sh 'echo JAVA_HOME=$JAVA_HOME'
withMaven(
maven: maven_id,
mavenSettingsFilePath: "travis/mvn.settings.xml",
mavenOpts: '-Xmx2048m',
jdk: jdk_id
) {
sh "mvn -f grouper-parent deploy -Prelease -Dgpg.keyname=$GPG_KEY"
}
sh "JAVA_HOME=${java_home} mvn -f grouper-parent deploy -Prelease -Dgpg.keyname='${gpg_key}'"
}
}
}
} else {
Expand Down
1 change: 1 addition & 0 deletions temp.txt
@@ -0,0 +1 @@
2.6.16 release