WMS_Native/Jenkinsfile.groovy

31 lines
1011 B
Groovy

pipeline {
agent "built-in"
options {
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
disableConcurrentBuilds()
}
environment {
// ANDROID_HOME = "/usr/local/android/sdk" // Cambia in base al tuo sistema
GRADLE_HOME = tool 'Gradle 8.13' // Nome dello strumento configurato in Jenkins
PATH = "${env.GRADLE_HOME}/bin:${env.PATH}"
}
stages {
stage('Preparing project') {
steps {
powershell "(gc gradle.properties) -replace 'org.gradle.caching=true', 'org.gradle.caching=false' | Out-File -encoding ASCII gradle.properties"
powershell "(gc gradle.properties) -replace 'org.gradle.unsafe.configuration-cache=true', 'org.gradle.unsafe.configuration-cache=false' | Out-File -encoding ASCII gradle.properties"
}
}
stage('Build') {
steps {
bat "gradle app:build --stacktrace"
}
}
}
}