Posts

Showing posts from October, 2023

Jenkins file | declarative pipeline scripting

Image
 https://www.youtube.com/watch?v=7KCS70sCoK0&t=843s https://plugins.jenkins.io/ ------------------------------------------------------------------------------------------------------------------------------- Post Job -- some automated script such as sending an email etc on the status of the built whether it is successful or not. Define conditional run of the steps for instance you want to run the test in development branch build . The current / active branch name in the build is always available in the jenkins file through and environmental that jenkins provides it . BRANCH_NAME /OR env.BRANCH_NAME  check if this is dev branch This part of the buuild will only execute if the current branch is dev. If you only want to build your application when there are code changes. if branch name and code changes are true CODE_CHANGES is the variable that you define yourself globally like below. getGitChanges()  -- This would be a groovy script to check if there is any changes mad...

Jenkins Interview Question

 https://www.youtube.com/watch?v=7KCS70sCoK0&t=843s   ------------------------------------------------------------------------------------------------------------------------------- Jenkins Basics What is Jenkins, and why is it used? Explain the difference between Jenkins and Hudson. How can you install Jenkins? Describe the architecture of Jenkins. What is a Jenkins pipeline? What are Jenkins plugins, and why are they important? What is the role of the Jenkins Master in a Jenkins setup? What is a Jenkins agent or node? How do you back up Jenkins configurations and data? Explain what the Jenkinsfile is and its significance. Jobs and Builds How can you create a new Jenkins job? What is a Jenkins build? What is a Jenkins workspace? How do you schedule jobs in Jenkins? Explain the concept of parameterized builds in Jenkins. What are build triggers in Jenkins? How do you archive artifacts in Jenkins? How can you secure your Jenkins job? Explain the difference between a Freesty...