Une collection organisée de snippets de code pour accélérer votre développement. Parcourez, recherchez et copiez en un clic.
steps {
sh './gradlew build'
}
steps {
sh 'mvn clean install'
}
steps {
script {
def customImage = docker.build("my-image:${env.BUILD_ID}")
customImage.push()
}
}
stage('Analyse SonarQube') {
environment {
scannerHome = tool 'SonarQubeScanner'
}
steps {
withSonarQubeEnv('My SonarQube Server') {
sh '${scannerHome}/bin/sonar-scanner'
}
}
}
post {
always {
junit '**/target/surefire-reports/*.xml'
}
}
steps {
git url: 'https://github.com/user/repo.git', branch: 'main'
}