Run pipeline on python3 node
The whole Jenkinsfile pipeline can be executed
on the python3 agent, making less roundtrips across
the networking and allowing more stability in the build.
Change-Id: I7db9d228cf6a825205d95cea5d7d290fc49e28b6
diff --git a/Jenkinsfile b/Jenkinsfile
index 8bbbeca..376d707 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -16,15 +16,13 @@
lintOutTrimmed = ""
-node ('server') {
+node ('python3') {
gerritReview labels: ['Code-Style': 0]
stage('YAML lint') {
- node ('python3') {
- checkout scm
- def lintOut = sh(script: 'yamllint -c yamllint-config.yaml jenkins/*.yaml || true', returnStdout: true)
- lintOutTrimmed = lintOut.trim()
- }
+ checkout scm
+ def lintOut = sh(script: 'yamllint -c yamllint-config.yaml jenkins/*.yaml || true', returnStdout: true)
+ lintOutTrimmed = lintOut.trim()
}
stage('Code Style') {