Vendored
+8
-2
@@ -5,7 +5,13 @@ pipeline {
|
||||
dockerImage = 'jcabillot/unrar-arm64'
|
||||
}
|
||||
|
||||
agent { label 'arm64' }
|
||||
//agent { label 'arm64' }
|
||||
agent {
|
||||
kubernetes {
|
||||
defaultContainer 'docker' // All `steps` instructions will be executed by this container
|
||||
yamlFile 'Jenkinsfile-pod-template.yml'
|
||||
}
|
||||
}
|
||||
|
||||
triggers {
|
||||
cron('@midnight')
|
||||
@@ -20,7 +26,7 @@ pipeline {
|
||||
|
||||
stage('Build image') {
|
||||
steps{
|
||||
sh 'docker build --force-rm=true --no-cache=true --pull -t ${dockerImage} .'
|
||||
sh 'docker build --force-rm=true --no-cache=true --network host --pull -t ${dockerImage} .'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user