Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 21: Jenkins Pipeline and Jenkinsfile: मराठी Cards

English cards · Chapter उघडा

उजळणी (Revision) cards

Freestyle job Jenkinsfile मध्ये का हलवायचा. Server गेला तर UI settings जातात, आणि कुणी बदललं ते कुणालाच दिसत नाही.
उजळणी (Revision) card 1 of 16: Freestyle job Jenkinsfile मध्ये का हलवायचा · PNG download करा · Card page उघडा

Lesson: 21.1 Why move Freestyle into a Jenkinsfile

Declarative vs Scripted pipeline. नवीन लोकांना पटकन वाचता आणि review करता येतील अशा pipelines teams ना हव्या.
उजळणी (Revision) card 2 of 16: Declarative vs Scripted pipeline · PNG download करा · Card page उघडा

Lesson: 21.2 Declarative vs Scripted (pick Declarative)

SCM वरून Pipeline job बनवा. Pipeline job page वर टाईप केली तर ती Git मध्ये नाही आणि review होत नाही.
उजळणी (Revision) card 3 of 16: SCM वरून Pipeline job बनवा · PNG download करा · Card page उघडा

Lesson: 21.3 Create a Pipeline job from SCM

badge-node project ची रचना. Stages ना अपेक्षित files repo मध्ये असतील तरच pipeline चालते.
उजळणी (Revision) card 4 of 16: badge-node project ची रचना · PNG download करा · Card page उघडा

Lesson: 21.4 Same Node.js app — project shape reminder

CI/CD pipeline stages: lint, test, build, push, deploy. Manual releases मध्ये steps विसरतात. Pipeline प्रत्येक code push वर त्याच checks त्याच क्रमाने चालवते.
उजळणी (Revision) card 5 of 16: CI/CD pipeline stages: lint, test, build, push, deploy · PNG download करा · Card page उघडा

Lesson: 21.5 Full Declarative Jenkinsfile for badge Node

Credential ID ने bind करा. Secrets Jenkinsfile मध्ये न लिहिता build पर्यंत पोहोचायला हवेत.
उजळणी (Revision) card 6 of 16: Credential ID ने bind करा · PNG download करा · Card page उघडा

Lesson: 21.6 Optional: bind a credential by id (pattern only)

agent आणि tools: Node असायलाच हवा. Agent वर Node नसेल तर कुठलीही test चालायच्या आधीच npm fail होतो.
उजळणी (Revision) card 7 of 16: agent आणि tools: Node असायलाच हवा · PNG download करा · Card page उघडा

Lesson: 21.7 Agent tools: Node must exist

Multibranch pipeline: ओळख. Teams कडे खूप branches असतात. प्रत्येकासाठी हाताने job बनवणं slow.
उजळणी (Revision) card 8 of 16: Multibranch pipeline: ओळख · PNG download करा · Card page उघडा

Lesson: 21.8 Multibranch awareness (not required for the lab)

एकच badge build, दोन रूपं. Click job code मध्ये कसा बसतो हे interviewers विचारतात.
उजळणी (Revision) card 9 of 16: एकच badge build, दोन रूपं · PNG download करा · Card page उघडा

Lesson: 21.9 Freestyle vs Pipeline — same badge, two shapes

Pipeline troubleshooting. Syntax किंवा setup problem मुळे कुठलाही code चालायच्या आधी pipeline fail होऊ शकते.
उजळणी (Revision) card 10 of 16: Pipeline troubleshooting · PNG download करा · Card page उघडा

Lesson: 21.10 Troubleshooting

वाचता यायलाच हवेत असे Declarative blocks. Interview मध्ये आणि कामावर कुठलीही Jenkinsfile पटकन वाचता यायला हवी.
उजळणी (Revision) card 11 of 16: वाचता यायलाच हवेत असे Declarative blocks · PNG download करा · Card page उघडा

Lesson: 21.11 Declarative blocks you must be able to read

options: timeout, retry, timestamps. अडकलेला build तासन्तास executor धरून ठेवतो आणि बाकीच्यांना अडवतो.
उजळणी (Revision) card 12 of 16: options: timeout, retry, timestamps · PNG download करा · Card page उघडा

Lesson: 21.12 Options: timeout, retry, timestamps, one build at a time

stash, input approval आणि currentBuild. काही steps दुसऱ्या machines वर चालतात, आणि production ला माणसाचा होकार हवा.
उजळणी (Revision) card 13 of 16: stash, input approval आणि currentBuild · PNG download करा · Card page उघडा

Lesson: 21.13 Stash, approval, and currentBuild

parameters, when, parallel आणि matrix. Stages copy न करता pipelines ना choices आणि speed हवा.
उजळणी (Revision) card 14 of 16: parameters, when, parallel आणि matrix · PNG download करा · Card page उघडा

Lesson: 21.14 Parameters, when, parallel, and matrix

Scripted pipeline आणि थोडं Groovy. काही जुन्या pipelines Scripted आहेत, आणि काही logic ला loop लागतो.
उजळणी (Revision) card 15 of 16: Scripted pipeline आणि थोडं Groovy · PNG download करा · Card page उघडा

Lesson: 21.15 Scripted Pipeline and a little Groovy

Jenkinsfile मध्ये लिहिलेले triggers. UI मध्ये set केलेले triggers review होत नाहीत आणि हरवू शकतात.
उजळणी (Revision) card 16 of 16: Jenkinsfile मध्ये लिहिलेले triggers · PNG download करा · Card page उघडा

Lesson: 21.16 Triggers written in the Jenkinsfile

मुलाखत (Interview) cards

Pipeline Jenkinsfile मध्ये का ठेवायची? Jenkinsfile Git मध्ये राहते, म्हणून बदल review होतात, versioned असतात आणि restore किंवा copy करणं सोपं.
मुलाखत (Interview) card 1 of 16: Pipeline Jenkinsfile मध्ये का ठेवायची? · PNG download करा · Card page उघडा

Lesson: 21.1 Why move Freestyle into a Jenkinsfile

Declarative की Scripted pipeline? Declarative: ठरलेले blocks, वाचायला सोपं, syntax आधीच check. Scripted: मोकळा Groovy, जास्त power, वाचायला अवघड.
मुलाखत (Interview) card 2 of 16: Declarative की Scripted pipeline? · PNG download करा · Card page उघडा

Lesson: 21.2 Declarative vs Scripted (pick Declarative)

Pipeline job ला Jenkinsfile कशी सापडते? Definition Pipeline script from SCM ठेवा, repo, branch, credential ID, आणि Script Path द्या (default Jenkinsfile).
मुलाखत (Interview) card 3 of 16: Pipeline job ला Jenkinsfile कशी सापडते? · PNG download करा · Card page उघडा

Lesson: 21.3 Create a Pipeline job from SCM

Jenkinsfile आणि code एकाच pull request मध्ये का बदलायचे? म्हणजे pipeline नेहमी code शी जुळते. नवीन test command आणि त्याची stage एकत्र येतात.
मुलाखत (Interview) card 4 of 16: Jenkinsfile आणि code एकाच pull request मध्ये का बदलायचे? · PNG download करा · Card page उघडा

Lesson: 21.4 Same Node.js app — project shape reminder

CI/CD pipeline मध्ये कुठल्या stages हव्या? नेहमीचा क्रम: checkout → lint → test → build → push → deploy. प्रत्येक stage fail झाली की pipeline थांबवते.
मुलाखत (Interview) card 5 of 16: CI/CD pipeline मध्ये कुठल्या stages हव्या? · PNG download करा · Card page उघडा

Lesson: 21.5 Full Declarative Jenkinsfile for badge Node

Jenkinsfile मध्ये secret कसं वापरता? Credential ID सोबत withCredentials वापरा. Secret फक्त block मध्ये environment variable असतं आणि logs मध्ये masked.
मुलाखत (Interview) card 6 of 16: Jenkinsfile मध्ये secret कसं वापरता? · PNG download करा · Card page उघडा

Lesson: 21.6 Optional: bind a credential by id (pattern only)

tools block काय करतो? Manage Jenkins → Tools मध्ये set केलेल्या नावाने Node किंवा Maven सारखं tool build च्या PATH मध्ये टाकतो.
मुलाखत (Interview) card 7 of 16: tools block काय करतो? · PNG download करा · Card page उघडा

Lesson: 21.7 Agent tools: Node must exist

Multibranch Pipeline म्हणजे काय? Repo scan करून Jenkinsfile असलेल्या प्रत्येक branch किंवा pull request साठी एक pipeline बनवणारा job.
मुलाखत (Interview) card 8 of 16: Multibranch Pipeline म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 21.8 Multibranch awareness (not required for the lab)

Freestyle job Jenkinsfile मध्ये कसा बसतो? SCM → checkout scm, shell step → sh, post-build archive → post { success { archiveArtifacts } }.
मुलाखत (Interview) card 9 of 16: Freestyle job Jenkinsfile मध्ये कसा बसतो? · PNG download करा · Card page उघडा

Lesson: 21.9 Freestyle vs Pipeline — same badge, two shapes

“No such DSL method” error. अर्थ काय? Step चं नाव Jenkins ला माहीत नाही. सहसा typo किंवा तो step देणारा plugin नाही.
मुलाखत (Interview) card 10 of 16: “No such DSL method” error. अर्थ काय? · PNG download करा · Card page उघडा

Lesson: 21.10 Troubleshooting

Declarative pipeline चे मुख्य blocks सांगा. pipeline, agent, stage आणि steps असलेले stages, आणि post. Optional: environment, options, parameters, when.
मुलाखत (Interview) card 11 of 16: Declarative pipeline चे मुख्य blocks सांगा. · PNG download करा · Card page उघडा

Lesson: 21.11 Declarative blocks you must be able to read

अडकलेला Jenkins build कसा थांबवता? options { timeout(...) } add करा. वेळ संपली की Jenkins build abort करतो.
मुलाखत (Interview) card 12 of 16: अडकलेला Jenkins build कसा थांबवता? · PNG download करा · Card page उघडा

Lesson: 21.12 Options: timeout, retry, timestamps, one build at a time

Pipeline मध्ये manual approval कसं add करता? input step वापरा. Allowed user Proceed click करेपर्यंत build थांबतो.
मुलाखत (Interview) card 13 of 16: Pipeline मध्ये manual approval कसं add करता? · PNG download करा · Card page उघडा

Lesson: 21.13 Stash, approval, and currentBuild

Deploy फक्त main branch वर कसा चालवता? Deploy stage वर when { branch 'main' } वापरा. बाकीच्या branches ती skip करतात.
मुलाखत (Interview) card 14 of 16: Deploy फक्त main branch वर कसा चालवता? · PNG download करा · Card page उघडा

Lesson: 21.14 Parameters, when, parallel, and matrix

script block कधी वापरता? Declarative ने सांगता येत नाही तेव्हा, जसं loop. script { } stage मध्ये Groovy चालवतो.
मुलाखत (Interview) card 15 of 16: script block कधी वापरता? · PNG download करा · Card page उघडा

Lesson: 21.15 Scripted Pipeline and a little Groovy

Jenkinsfile मध्ये nightly build कसा set करता? triggers { cron('H 2 * * *') } add करा. H start वेळ पसरवतो, म्हणजे load spikes टळतात.
मुलाखत (Interview) card 16 of 16: Jenkinsfile मध्ये nightly build कसा set करता? · PNG download करा · Card page उघडा

Lesson: 21.16 Triggers written in the Jenkinsfile

तुलना (Comparison) cards

Declarative vs Scripted pipeline. Jenkinsfile लिहायच्या दोन पद्धती.Declarative: pipeline { } मध्ये ठरलेले blocks.Scripted: node { } मध्ये Groovy code.
तुलना (Comparison) card 1 of 3: Declarative vs Scripted pipeline · PNG download करा · Card page उघडा

Lesson: 21.2 Declarative vs Scripted (pick Declarative)

Freestyle job vs Pipeline job. Freestyle: web forms ने set केलेला job.Pipeline: Jenkinsfile मधून वाचलेला job.
तुलना (Comparison) card 2 of 3: Freestyle job vs Pipeline job · PNG download करा · Card page उघडा

Lesson: 21.9 Freestyle vs Pipeline — same badge, two shapes

stash vs archiveArtifacts. दोन्ही build मधल्या files ठेवतात.stash: त्याच run च्या पुढच्या stage साठी.archiveArtifacts: build सोबत कायम.
तुलना (Comparison) card 3 of 3: stash vs archiveArtifacts · PNG download करा · Card page उघडा

Lesson: 21.13 Stash, approval, and currentBuild