Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
441 views
in Technique[技术] by (71.8m points)

Executing Python script from SCM as Jenkins freestyle job build step

Jenkins Pipeline jobs have a feature to execute Groovy scripts from SCM via Pipeline -> Definition -> Pipeline Script from SCM. Ideally I'd like to execute a Python script instead, via a freestyle job, via SCM, because:

  1. I don't want to have to deploy Python scripts directly to my Jenkins instance
  2. I don't need a pipeline for jobs that only do one thing
  3. It would be nice to pass parameters from the Jenkins environment directly to my Python CLI

Is it possible to create a build step in a Jenkins freestyle job that executes a Python script from SCM?

question from:https://stackoverflow.com/questions/65672063/executing-python-script-from-scm-as-jenkins-freestyle-job-build-step

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...