I have code for an android library which was pushed to azure git ,
My main goal is to make an artifact from it to be consumed in a later project , I created a Pipeline which looks like this :
trigger:
- master
pool:
vmImage: 'macos-latest'
steps:
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
- task: MavenAuthenticate@0
inputs:
artifactsFeeds: 'testArt'
tasks: 'assembleRelease'
But it didn't create anything , any ideas what am I doing wrong here ? I found little information about this specific request
Thanks to all the helpers!
UPDATE :
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
tasks: 'assembleRelease'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
- task: CopyFiles@2
inputs:
contents: '**/*.aar'
targetFolder: '$(build.artifactStagingDirectory)'
- task: PublishBuildArtifacts@1
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
artifactName: 'FeedName'
- task: UniversalPackages@0
inputs:
command: publish
publishDirectory: $(Build.ArtifactStagingDirectory)
vstsFeedPublish: 'Project/FeedName'
vstsFeedPackagePublish: 'com.package'
vstsPackageVersion: $(latestVersion)
The new update builds an aar file but I couldn't get to the artifact from android studio , is using UniversalPackages correct (without it Artifact section is empty)? or should I use something else ?