Some checks failed
WMS - Android (New)/pipeline/head There was a failure building this commit
31 lines
1009 B
Groovy
31 lines
1009 B
Groovy
pipeline {
|
|
agent 'master'
|
|
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
|
|
} |