I am using Jenkins with the Kubernetes Plugin.
I know how to write a Jenkins pipeline to execute a python code, which is convenient because you can define the container at job level:
pipeline {
agent { docker { image 'python:3.5.1' } }
stages {
stage('build') {
steps {
sh 'python --version'
}
}
} }
However I like to use the python plugin to copy a full script in the interface of Jenkins. Is it possible to define the container to be used at script level, and still use the python plugin?
Thank you