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 Лэнд
Видео Creating Pipeline as code to Create Artifacts Using Jenkins and Maven автора JavaScript Лэнд
Информация
4 декабря 2023 г. 17:32:28
00:16:28
Похожие видео



![NyanPotato | GARNiDELiA - Yakusoku -Promise code- [Extra] 1st +HDDT FC 98.54% {#1 746pp FC} - osu!](http://pic.rutubelist.ru/video/52/51/5251775be9d4e70f1f52432e41115ae5.jpg?size=s)















