Загрузка страницы

Creating Pipeline as code to Create Artifacts Using Jenkins and Maven

In this video, we will use a Pipeline as code to create Artifact of your Java projects using Maven. Here we use a dynamically provisioned worker node to run our job. And we Stashing concept to Transfer files from one stage to another. Then we will configure Maven in Jenkins where we specify our goals and the rest Jenkins will do. ------------------------------------PIPELINE CODE------------------------------------------------------------------------------------- pipeline{ agent none; tools { maven 'Maven' } stages{ stage("download ccode from github") { agent{ label "Docker_container" } steps{ git "https://github.com/HKMtech123/Maven_Jenkins.git" sh "ls" stash includes: "**", name: "first_Stash"} } stage("build package") { agent{ label "Docker_container" } steps{ unstash "first_Stash" sh "ls" sh "mvn package" stash includes: "**", name: "second_Stash"} } stage("displaying output") { agent{ label "Docker_container" } steps{ unstash "second_Stash" sh "java -jar target/*.jar"} } } } ----------------------------------------------------------------------------------------------------------------------- #Jenkins #CICD #Devops #DevOpsTutorial #ContinuousIntegration #ContinuousDelivery #MasteringJenkins #JenkinsTutorial #DevOpsTools #BuildAutomation #MavenBuildAutomation #JenkinsAndMaven #BuildArtifacts #JavaProjects #MavenPackage #Tutorial #DevOpsTutorial #DevOpsTraining #ITAutomation #YouTubeVideo #YouTubeTutorial #Tech #TechTutorial #JenkinsTips #Automation #BestPractices #JenkinsMastery #JenkinsBestPractices #TechCommunity #YouTubeTutorial #Trending #trendingtopic #HKMTECHWORLD #hkmtechworld Dynamic Provisioning of WorkerNode: https://youtu.be/ZOiKdYMx-ss Custom Image with Maven-java: https://youtu.be/Cu0GnqaFDm0 Jenkins Playlist: https://www.youtube.com/playlist?list=PLxLHu4An_uMOtbXbnptVzKVEApIcou7en Docker Playlist: https://www.youtube.com/playlist?list=PLxLHu4An_uMNw16eVGt2JUBXZiUMtTLsq Github Playlist: https://www.youtube.com/playlist?list=PLxLHu4An_uMNXGQy0b2vXty8_C40hoSYj Git and GitHub Playlist: https://www.youtube.com/playlist?list=PLxLHu4An_uMNNV90g3MCJPl-xNHkiz-_I Linux Playlist: https://www.youtube.com/playlist?list=PLxLHu4An_uMM9ZlSRrBAtkWNukH82DeR6 SQL Playlist: https://www.youtube.com/playlist?list=PLxLHu4An_uMPk9pOm8-LYRrdSWg7_3oWI Social Media: LinkedIn: https://www.linkedin.com/in/vinayak-kumar-001222191/ Telegram Link: https://t.me/hkmtechworld

Видео Creating Pipeline as code to Create Artifacts Using Jenkins and Maven автора JavaScript Лэнд
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки