Skip to content

Commit

Permalink
Set up periodic reporting with Azure Pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamachor committed Jan 23, 2024
1 parent c6cc293 commit 13a6b2c
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .azure-pipelines/workflows/periodic_reporting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Licensed 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.

trigger: none

variables:
MAVEN_CACHE_FOLDER: $(Pipeline.Workspace)/.m2/repository
MAVEN_OPTS: '-ntp -B -Dmaven.repo.local=$(MAVEN_CACHE_FOLDER)'

stages:
# Build LST-Bench and create artifact to deploy to target VM
- stage: build
jobs:
- job: Build
pool:
vmImage: 'ubuntu-latest'
steps:
- task: Cache@2
displayName: Cache Maven local repo
inputs:
key: 'maven | "$(Agent.OS)" | **/pom.xml'
restoreKeys: |
maven | "$(Agent.OS)"
maven
path: $(MAVEN_CACHE_FOLDER)
- task: Maven@4
inputs:
mavenPomFile: 'pom.xml'
options: $(MAVEN_OPTS)
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.11'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package -DskipTests -Pspark-jdbc'
- task: CopyFiles@2
displayName: 'Copy Artifacts to: $(TargetFolder)'
inputs:
SourceFolder: '$(Build.SourcesDirectory)'
Contents: |
launcher.sh
target/**/*
TargetFolder: '$(System.DefaultWorkingDirectory)/pipeline-artifacts/'
- upload: '$(System.DefaultWorkingDirectory)/pipeline-artifacts/'
artifact: drop
- deployment: VMDeploy
displayName: 'Deploying LST-Bench'
dependsOn: Build
environment:
name: 'lst-bench-periodic-reporting'
resourceType: VirtualMachine
tags: 'client'
strategy:
runOnce:
deploy:
steps:
- script: echo my first deployment

0 comments on commit 13a6b2c

Please sign in to comment.