Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
WIP Jenkinsfile: build and sign
Showing
1 changed file
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} | ||
} | ||
} | ||
} | ||
} |