Skip to content

Commit

Permalink
Update azure-pipelines.yml for Azure Pipelines
Browse files Browse the repository at this point in the history
Set gradle jdkVersionOption to 1.11
build and tag for every push
copy files before creating the release
  • Loading branch information
HSZemi committed Oct 27, 2019
1 parent bcad2fa commit 98ef037
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,22 @@ steps:
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkVersionOption: '1.11'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/TEST-*.xml'
tasks: 'build'
- task: CopyFiles@2
displayName: 'Copy Files to: $(Build.ArtifactStagingDirectory)'
inputs:
Contents: 'build/libs/*.jar'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
flattenFolders: true
- task: GithubRelease@0
displayName: 'Create GitHub Release'
inputs:
gitHubConnection: votemanager
repositoryName: hszemi/VoteManager
tagSource: manual
tag: $(Build.BuildNumber)
assets: $(Build.ArtifactStagingDirectory)/*.jar

0 comments on commit 98ef037

Please sign in to comment.