Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WIP Jenkinsfile: build and sign
credman committed Dec 28, 2021
1 parent 638ae4d commit 898ec9a
Showing 1 changed file with 67 additions and 0 deletions.
67 changes: 67 additions & 0 deletions Jenkinsfile
@@ -0,0 +1,67 @@
pipeline {
agent any
environment {
//maintainer = "t"
//imagename = 'g'
//tag = 'l'
branch_name = 'GROUPER_2_6_BRANCH'
//branch_name = 'HEAD'
gpg_key = '1D3F3E9E30C7F312' //mch***@isc.upenn.edu

}

stages {

stage('DEBUG') {
steps {
sh "printenv"
}
}

stage('Checkout') {
steps {
checkout([
$class: 'GitSCM',
//branches: [[name: '*/$branch_name']],
branches: [[name: "*/${branch_name}"]],
doGenerateSubmoduleConfigurations: false,
//extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'different_directory']],
extensions: [
[$class: 'LocalBranch'], [$class: 'WipeWorkspace'],
[$class: 'CloneOption', depth: 1, noTags: true, reference: '', shallow: true],
],
submoduleCfg: [],
//userRemoteConfigs: [[url: 'git@github.com:Internet2/grouper.git']]
userRemoteConfigs: [[url: 'ssh://git@gitserver:22/git-server/repos/grouper.git', credentialsId: 'cer28-github']]
])
}
}

stage('Build') {
steps {
withMaven(
maven: 'Maven-3.8.4',
mavenSettingsFilePath: "travis/mvn.settings.xml",
mavenOpts: '-Xmx2048m',
jdk: 'Corretto JDK 8'
) {
//sh "mvn -f grouper-parent clean package"
sh "mvn -f grouper-misc/grouperClient clean compile"
}
}
}

stage('Release') {
steps {
withMaven(
maven: 'Maven-3.8.4',
mavenSettingsFilePath: "travis/mvn.settings.xml",
mavenOpts: '-Xmx2048m',
jdk: 'Corretto JDK 8'
) {
sh "mvn -f grouper-misc/grouperClient package gpg:sign -Dgpg.keyname=$gpg_key"
}
}
}
}
}

0 comments on commit 898ec9a

Please sign in to comment.