Some checks failed
WMS - Android (New)/pipeline/head There was a failure building this commit
34 lines
1.1 KiB
Groovy
34 lines
1.1 KiB
Groovy
pipeline {
|
|
agent {
|
|
label 'master'
|
|
}
|
|
|
|
options {
|
|
buildDiscarder(logRotator(numToKeepStr: '10', artifactNumToKeepStr: '10'))
|
|
disableConcurrentBuilds()
|
|
}
|
|
|
|
environment {
|
|
// ANDROID_HOME = "/usr/local/android/sdk" // Cambia in base al tuo sistema
|
|
JAVA_HOME = tool 'JDK 17.0.6 x64' // Nome dello strumento configurato in Jenkins
|
|
//GRADLE_HOME = tool 'Gradle 8.13' // Nome dello strumento configurato in Jenkins
|
|
PATH = "${env.JAVA_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=ON', 'org.gradle.unsafe.configuration-cache=OFF' | Out-File -encoding ASCII gradle.properties"
|
|
// }
|
|
// }
|
|
|
|
stage('Build') {
|
|
steps {
|
|
bat "./gradlew assembleRelease"
|
|
}
|
|
}
|
|
}
|
|
|
|
} |