Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match "Academies" Content #31

Open
cvitter opened this issue Oct 12, 2017 · 0 comments
Open

Match "Academies" Content #31

cvitter opened this issue Oct 12, 2017 · 0 comments

Comments

@cvitter
Copy link
Member

cvitter commented Oct 12, 2017

Check to see if the workshop has the following and add if needed:

Following the Getting started guide(https://jenkins.io/doc/book/pipeline/jenkinsfile/)

  • Move Getting started to a Jenkinsfile
  • Create Checkout step from SCM
  • Run on another agent(with a certain label)
  • Run Shell Step
  • Add Properties Step-Add Parameters for use in a Shell Step
  • Add Environment Variables(used in Shell step)
  • Add Credentials(used in Shell step)
  • Add Tools Step
  • Add Checkpoint and resume
  • Add Timeout step
  • Break previous pipelines into Multiple Stages
  • Wait for Input
  • Build a Downstream Job
  • Parallel multiple shell steps

Explore Replay feature by replaying previous pipeline with code changes

  • Create Shared Groovy library(https://jenkins.io/doc/book/pipeline/shared-libraries/)
  • Create function to set variables
  • Create function to read in text file
  • Create function to parse text file and return found items
  • Create variables file for use in your functions
  • Use a load step to load in another groovy file

Multbranch Pipeline

Understand pipeline build folder

Best practices

Read Through Sam's Talk with the following take aways http://schd.ws/hosted_files/jenkinsworld20162017/fb/Pipelines%20at%20Scale-%20How%20big%20How%20fast%20How%20many.pdf

  • When to consolidate steps
  • Counting how many steps are being run in a long running stage
  • Using Sh'Curl+extract+return stdout' instead of parsing in pipeline
  • Limiting the scope of large files and variables
  • Understanding @NonCPS and when to use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant