Tip - 1 To Delete the Builds from Jenkins from N1 to Nn ( For ex- from build4 to build20) Go to Manage Jenkins --> Script Console and use the below command. Jenkins.instance.getItemByFullName('JobName').builds.findAll { it.number > && it.number < 1717 }.each { it.delete() } For example:- Jenkins.instance.getItemByFullName('TestJen').builds.findAll { it.number > 10 && it.number < 38 }.each { it.delete() } Tip - 2 To modify the next build number in Jenkins. Jenkins.instance.getItemByFullName("My-Build-Pipeline/feature-improve-build").updateNextBuildNumber(47) For example:- Jenkins.instance.getItemByFullName("Organisation/Repository/Branch").updateNextBuildNumber(47) Tip - 3 To modify the next build number in Jenkins (Another Way of doing) You can run the following from the Script Console ( $JENKINS_URL/script ): def jo...
What is Docker? World before Docker no virtualization hypervisor-based virtualization container-based virtualization Architecture Docker uses a client-server architecture Main Docker elements deamon : process that runs on a host machine (server) client : primary Docker interface image : read-only template (build component) registry : public or private image repositories (distribution, ship component) container : created form image, holds everything that is needed for an application to run (run component) Benefits of Docker separation of roles and concerns developers focuses on building applications system administrators focuses on deployment portability: build in one environment, distributed and run on many others faster development, testing, deployment scalability: easy to spin up new containers or migrate to more powerful hosts better ...
Comments
Post a Comment