This is an automated email from the ASF dual-hosted git repository. sblackmon pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/streams-activitypub.git
The following commit(s) were added to refs/heads/main by this push: new 7f91d72 chore: add Jenkinsfile 7f91d72 is described below commit 7f91d72d670743a4a802d3403b6318a2f477d593 Author: Steve Blackmon <sblack...@apache.org> AuthorDate: Mon Feb 19 15:53:03 2024 -0600 chore: add Jenkinsfile resolves apache/streams-activitypub#4 Signed-off-by: Steve Blackmon <sblack...@apache.org> --- Jenkinsfile | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..6fde1ec --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,67 @@ +// *************************************************************************************************************************** +// * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file * +// * distributed with this work for additional information regarding copyright ownership. The ASF licenses this file * +// * to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance * +// * with the License. You may obtain a copy of the License at * +// * * +// * http://www.apache.org/licenses/LICENSE-2.0 * +// * * +// * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an * +// * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the * +// * specific language governing permissions and limitations under the License. * +// *************************************************************************************************************************** + +def AGENT_LABEL = env.AGENT_LABEL ?: 'ubuntu' +def JDK_NAME = env.JDK_NAME ?: 'jdk_17_latest' +def MVN_NAME = env.MVN_NAME ?: 'maven_3_latest' + +pipeline { + + agent { + node { + label AGENT_LABEL + } + } + + tools { + maven MVN_NAME + jdk JDK_NAME + } + + environment { + LANG = 'C.UTF-8' + MAVEN_CLI_OPTS = "--batch-mode --errors --fail-at-end --show-version --no-transfer-progress" + MAVEN_DEPLOY_LOCAL_DIR = "/tmp/maven_deploy_dir" + } + + stages { + + stage ('Build') { + steps { + sh "mvn ${MAVEN_CLI_OPTS} -P 'java-17' -Dmaven.test.skip.exec=true clean install" + } + post { + success { + archiveArtifacts '**/target/*.jar,**/target/*.war,**/target/*.zip' + } + } + } + + stage ('Test') { + steps { + sh "mvn ${MAVEN_CLI_OPTS} -P 'java-17' verify" + } + post { + always { + junit testResults: '**/target/surefire-reports/TEST-*.xml' + } + } + } + + stage ('Notify') { + steps { + step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: 'd...@streams.apache.org', sendToIndividuals: true]) + } + } + } +}