My colleague Bas Jonker wrote a blog post about getting this to work, hopefully that'll help you get started!
https://medium.com/@bas.jonker/mendix-native-builds-with-azure-pipelines-d421c0c67ff7
Thanks Eline,
I still got some gradle errors, but I am very glad that your info helped me in this process. Tjis is the yaml so far, not working but almost there I think:
trigger:
- master
pool:
vmImage: macos-latest
steps:
- task: CmdLine@2
inputs:
script: |
echo Write your commands here
/usr/libexec/java_home -V
- task: UseNode@1
inputs:
version: '18.x'
- task: Npm@1
inputs:
command: 'install'
- task: Npm@1
inputs:
command: 'custom'
customCommand: 'run configure'
- task: Gradle@4
inputs:
gradleWrapperFile: 'android/gradlew'
options: 'clean build'
workingDirectory: 'android'
tasks: 'devDebug'
publishJUnitResults: false
javaHomeOption: '1.21'
jdkVersionOption: '1.21' # Specify the JDK version you need
jdkUserInputPath: '/Users/runner/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.6-7.0/x64/Contents/Home' # Specify the path to your JDK installation
- task: CopyFiles@2
inputs:
SourceFolder: '**/*.apk'
Contents: '**'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
sonarQubeRunAnalysis: false
spotBugsAnalysis: false
- task: PublishBuildArtifacts@1
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'