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_J..." 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: • Dynamic Provisioning of Worker Node, launc... Custom Image with Maven-java: • Building custom Docker Image with Maven an... Jenkins Playlist: • Jenkins Complete Playlist in Hindi Docker Playlist: • Docker Playlist In Hindi Github Playlist: • Github Git and GitHub Playlist: • Git and GitHub Linux Playlist: • Linux SQL Playlist: • SQL- Complete Playlist Social Media: LinkedIn: / vinayak-kumar-001222191 Telegram Link: https://t.me/hkmtechworld