/challenges-jenkins-groovy

:file_folder: Challenges Your Groovy Skills For Jenkins By Solving Real Questions.

Primary LanguageRuby

Build Status PRs Welcome

LinkedIn slack Github

File me tickets or star the repo.

Similar Challenges: https://www.dennyzhang.com/battle

Table of Contents

challenges-jenkins-groovy: Use groovy, Jenkinsfile, Pipeline in Jenkins as a Pro.

See more challenges from Denny: here

Scenarios

Scenario-101: Jenkins Groovy For Security I

  • Objective: Basic usage for configuring Jenkins in Groovy
  • Requirements:
1. Use groovy to add a test user in Jenkins
2. For better security, use groovy to only allow registered user login

Scenario-102: Jenkins Groovy For Security II

  • Objective: More security configuration
  • Requirements:
1. Enable GitHub OAuth authentication
2. Create a global secured text

Scenario-201: Jenkins Backup I

  • Objective: Configure Jenkins Backup via Groovy script
  • Requirements:
1. For automated backup, enable and configure ThinBackup plugin via Groovy
2. Enable Jenkins SCM plugin

TODO

Scenario-202: Jenkins Backup II

  • Objective: Support 2 way sync
  • Requirements:
1. Users may configure Jenkins in GUI. Change may make in git repo. Thus support 2 way sync

TODO

Scenario-301: Jenkins Pipeline I

  • Objective: Basic Usage of Jenkins Pipeline
  • Requirements:
1. Define a dummy Jenkins pipeline job using Jenkinsfile
2. Define a Jenkins parameterized pipeline job using Jenkinsfile. It shall trigger another job.

Scenario-302: Jenkins Pipeline II

  • Objective: More Pipeline Usage
  • Requirements:
1. Define a heavy-weight Jenkins pipeline job. It's supposed to across 2 Jenkins agent nodes

Highlights

  • More Resources:
https://jenkins.io/doc/book/pipeline/jenkinsfile
https://github.com/jenkinsci/pipeline-examples
https://dzone.com/articles/jenkins-pipeline-plugin-tutorial

Contributors: Give People Credits

Below are folks who have contributed via GitHub!

License