[Optional] Using Proxy: Appknox task requests can be routed via a web proxy server, which can be configured in environmental variable HTTP_PROXY or HTTPS_PROXY in the format http(s)://username:password@hostname:port. It fallbacks to azure pipeline agent's proxy if not set.
View Output logs
The above task will upload the binary which will initiate Appknox automated scanning. The progress can be viewed in the pipeline build logs.
Examples
Pipeline for Android
# Android
# Build your Android project with Gradle.
# Add steps that test, sign, and distribute the APK, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/android
trigger:
- master
pool:
vmImage: 'macos-latest'
steps:
- task: Gradle@2
inputs:
workingDirectory: ''
gradleWrapperFile: 'gradlew'
gradleOptions: '-Xmx3072m'
publishJUnitResults: false
testResultsFiles: '**/TEST-*.xml'
tasks: 'assembleDebug'
- task: appknox@2
inputs:
filepath: './app/build/outputs/apk/debug/app-debug.apk'
accessToken: '$(appknoxtoken)'
riskThreshold: 'medium'