2018-11-14 15:24:36 +01:00
|
|
|
void setBuildStatus(String message, String state) {
|
|
|
|
step([
|
|
|
|
$class: "GitHubCommitStatusSetter",
|
|
|
|
reposSource: [$class: "ManuallyEnteredRepositorySource", url: "${env.GIT_URL}"],
|
|
|
|
contextSource: [$class: "ManuallyEnteredCommitContextSource", context: "ci/jenkins/build-status"],
|
|
|
|
errorHandlers: [[$class: "ChangingBuildStatusErrorHandler", result: "UNSTABLE"]],
|
|
|
|
statusResultSource: [ $class: "ConditionalStatusResultSource", results: [[$class: "AnyBuildResult", message: message, state: state]] ]
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Maven build') {
|
|
|
|
steps {
|
2024-03-04 16:08:32 +01:00
|
|
|
withMaven(maven: 'Maven') {
|
2024-03-04 15:45:25 +01:00
|
|
|
sh "mvn clean install"
|
2024-03-04 15:57:19 +01:00
|
|
|
}
|
2018-11-14 15:24:36 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|