How to Lint Jenkins Declarative Pipelines From the Command Line

Опубликовано: 16 Март 2025
на канале: CloudBeesTV
4,356
95

Need help with your Jenkins questions?
Visit https://community.jenkins.io/c/using-...

Timecodes ⏱:

00:00 Introduction
00:07 Overview
00:24 Starting point
00:30 Download Jenkins CLI
01:07 Create JENKINS_URL environment variable
01:38 Create Jenkinsfile
02:28 Create access token
02:53 Create JENKINS_USER_ID and JENKINS_API_TOKEN
03:30 Run job again
04:16 Add does-not-exist label
04:56 Add @Library annotation

#jenkinstutorial #jenkinspipeline

Information referenced in this video:

Command-line Pipeline Linter
https://www.jenkins.io/doc/book/pipel...

HTTP connection mode
https://www.jenkins.io/doc/book/manag...

Jenkins LTS 2.332.2
https://www.jenkins.io/changelog-stab...

CloudBees on Twitter:
  / cloudbees  

Darin on Twitter:
  / darinpope