Best automation channel on YT and I think best materials on web as well. I'm learning network automation and network as code concept and your channel provides very solid foundation. I was not able to figure it out how this works with networking but your channel helped me to run first basic automated job for routers and switches. Other tutorial shows only how this stuff can be used but don't show how to set that stuff. Slow paced step by step explanation is very helpful for inexperienced people. Jenkins is easy to install and have nice GUI. Thanks for your hard work.
Very nice explanation. I like it very much. Looking forward for next sessions by you which will explain all the configurations in detail. Please publish asap.
@aman: After runing build for 'date' command using option 'execute windows batch command' on windows , I a getting error below. Started by user unknown or anonymous Running as SYSTEM Building in workspace C:\Users\me\.jenkins\workspace\Test2 [Test2] $ cmd /c call C:\Users\me\AppData\Local\Temp\jenkins12681198203882068479.bat C:\Users\me\.jenkins\workspace\Test2>date The current date is: 25-12-2023 Enter the new date: (dd-mm-yy) C:\Users\me\.jenkins\workspace\Test2>exit 1 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE and using "date \T." getting below Started by user unknown or anonymous Running as SYSTEM Building in workspace C:\Users\me\.jenkins\workspace\Test 3 [Test 3] $ cmd /c call C:\Users\me\AppData\Local\Temp\jenkins7093448914425868521.bat C:\Users\me\.jenkins\workspace\Test 3>"date \T." The system cannot find the path specified. C:\Users\me\.jenkins\workspace\Test 3>exit 3 Build step 'Execute Windows batch command' marked build as failure Finished: FAILURE any idea on it?
HI Raghav thanks for proving such a nice tutorial ..searching for solution for my work from a long time but finally I got help from here ..Please keep up the good work God bless you
Nice video! To get the jobs to run, I had to check ""Restrict where this job can be run" and enter the label for the node we previously created. Not sure why he didn't have to in the video, but try that if your jobs are stuck in Pending.
Excellent training videos Raghav, keep it up. What are the best use cases for triggering jobs remotely? why and when would someone need to do that? Would appreciate your feedback.
Hi, thanks for watching. There can be many reasons like your jenkins is setup on some remote cloud system or there is a distributed system in place. In most of the cases, we have jenkins running on a separate cloud server.
Thank you sir very nice explanation we waiting for next section; please take one project and explain point to point sir we are maintain one note book that's the resign sir ; vedio maintain bellow 20 minutes; thank you sir
Hi Ragav, Thanks a lot for this videos. Very well explained. I have a query. You have explained triggering of job test1 , when job test2 is triggered. Here test1 and test2 are in same jenkins server. How to configure build trigger on job test1 when job test2 is in different jenkins server.
HI Akash, you can try Generic Webhook Trigger plugin this should help you - stackoverflow.com/questions/11560992/can-one-jenkins-trigger-a-job-on-a-remote-jenkins
Hello Sir, What is the difference between ' Build Trigger - Build after other Projects are Built' and 'Post Build Actions' in example shown in video. Instead of choosing 'Post Build action' in testjob2' as test3...if we directly give in test3 (build trigger when testjob2' completed' - Both works same...i.e. both options same..OR is there any difference...for particular example (Chain Job Execution)
Hi Sumanshu, Build trigger is we are providing the trigger for this current job. Post Build Action we are sending the trigger to another job. Yes for this chaining, both can work
Thanks so much by your valuable material. Good work!... I will wait eagerly your coming new material. Keep doing your good work!. Consider work around with Jenkins 2.0. It offers new items now.
Hi Raghav, you answered my question by talking about logs, when I consulted Jenkins logs I realized that the execution is normally done remotely but faster. This leaves no time for it to appear in the build queue ;) thank you very much!
Many thanks for the video. Many options have changed in the latest version of Jenkins but the mains things are unchanged. Finally my build succeeded after I read the comments and used echo 26-08-2020 | date
Hi, Raghav Pal! I like your video which help me learn about Jenkins as a beginner. I also like your google background picture. I wonder which extension you are using. Please tell me where I could get it when you are free.
Hi Roopa, yes this is enough for any automation project. There may be few more things to learn specific to the project/process but overall this will make the complete foundation for any jenkins project
Hi Raghav, Im from Pak, your tutorials are very informative and makes the tech easy to learn. I have been watching your tutorials from a long time. I have a usecase to run playwright test scripts in my Raven service before pushing the build if playwright scripts are passed. If the build fails it is discarded. Can you help out with its jenkinsfile?
Hassan Here is a Jenkinsfile that you can use to run Playwright test scripts in your Raven service before pushing the build: ``` pipeline { agent any stages { stage('Build') { steps { sh 'npm install' sh 'npx playwright test' } } stage('Deploy') { when { expression { return sh(returnStatus: true, script: 'npx playwright test --exit-on-failure') == 0 } } steps { sh 'npm run deploy' } } } } ``` This Jenkinsfile will first install the Playwright dependencies and then run the Playwright test scripts. If the Playwright test scripts pass, then the build will continue to the `Deploy` stage. If the Playwright test scripts fail, then the build will be discarded. Here is a breakdown of the different stages in the Jenkinsfile: * `Build` stage: This stage installs the Playwright dependencies and then runs the Playwright test scripts. * `Deploy` stage: This stage is only executed if the Playwright test scripts pass. In this stage, the `npm run deploy` command is executed to deploy the application. I hope this helps
@@RaghavPal thanks for the prompt response. i should have also placed my test folder in the Raven repo? As it is going to run locally and if thats the case i will also set url to localhost in my playwright config file? Manifest.yml has also been already configured in the bitbucket.
Yes, you should place your test folder in the Raven repo. This is because the Jenkinsfile will need to be able to access the test files in order to run them. If the playwright test scripts are running locally, then you will need to set the URL in the playwright config file to localhost. This is because the playwright test scripts will need to be able to connect to the Raven service running on your local machine.
Hi Raghav , Thanks for all your tutorials . I have set up jenkins with Maven and git. My run creates a folder called 'logs' inside workspace that stores the logs for failed cases ... I DO NOT want to expose workspace folder to others but want the 'logs' folder to be accessible .. Could you please guide me HOW and WHERE in jenkins can I copy the folder so its accessible when the link is shared .. Thanks
Hi Kyati, One of the ways can be you can create a shared folder and have the logs copied there manually or create some batch job for that. Within Jenkins, I will need to check. See if this helps you - www.jenkins.io/doc/book/system-administration/viewing-logs/
Hey Raghav, Great series! Easy and Depth. I have a quick question. I am using MAC and recently tried to build a job in jenkins. But the jenkin build ended in error "cd: Directory not found" but i do have the directory and it has the permission 777. Any thoughts on this?
hi thanks for your tutorials, i am looking for a job to from jenkins cli.., as far as i searched i got videos only on already built/created jobs, but i want to know how to create new/configure job from jenkins cli (with all parameters what we give inside of a job)... please provide if you have any info on this. i have gone through our 4th tutorial on jenkins cli but not found what i am looking for. Thanks in advance
Hi Varun, if you goto jenkins cli (e.g. localhost:8080/cli) there you will find an option to create-job. This will use an xml file for configuration. I will try to do a video on this soon.
hi thanks for your reply, i have tried the same thing but after executing the command, command prompt is not coming back(not writing/happening) anything (waited for 10-15min), After trying with multiple options i got to know like we need to add arguments like -v -f n N etc., but no luck. If possible please do provide the video for creating new job and also copy from existing job and build. waiting for the video. Thanks in advance.
Hi Raghav, Thanks for your tutorials, If possible could you please post some more in depth videos on JMeter Beanshell scripting. That will help us a lot, Thanks.....😃
Hi Raghav, Thanks for the tutorial, really it's good. I need your help regarding , I am trying to write a script to retrieve the url of artifacts uploaded in artifactory via Jenkins. But I am not getting were should I start from.....could you please help me on this...??
How to create a job which will list the content of home directory. Pls sir reply...and also how to create another job which will trigger automatically after first build complete
Hi Supriya, for listing contents of your home directory you can add a simple job and in the commands goto the location of your home directory and then use dir (windows) or ls (mac) command. You can chain the jobs in the Post Process actions. You will find this if you see the next tutorials in this series - ruclips.net/video/ndLbn24OwQg/видео.html
Your series on jenkins is too good however facing issue while building jobs every time it gets failed and by the way I'm running "date" command on windows machine is something to be configured in this case please revert?
Hi sir, I am trying to achieve master slave architecture, but unable to keep 2 nodes online and trigger jobs simultaneously on both. could u please suggest me something
Hi Pallavi, To run TSLint and Checkstyle in an Angular application via a Jenkins job, you can follow these steps: Install TSLint and Checkstyle: Install TSLint and Checkstyle as a local dev dependency in your Angular project by running npm install --save-dev tslint checkstyle. Configure TSLint and Checkstyle: Configure TSLint by creating a tslint.json file in the root of your Angular project. Configure Checkstyle by creating a checkstyle.xml file in the root of your Angular project. Run TSLint and Checkstyle in your Jenkins job: In your Jenkins job, add a build step to run TSLint by executing the command npx tslint --config tslint.json 'src/**/*.ts'. Add another build step to run Checkstyle by executing the command npx checkstyle-alt -c checkstyle.xml 'src/**/*.ts'. Configure Jenkins to fail the build if TSLint or Checkstyle reports errors: In your Jenkins job, add a post-build step to fail the build if TSLint or Checkstyle reports any errors. You can use the Jenkins plugins like Text-finder or Conditional BuildStep to implement this. Save and run the Jenkins job: Save your changes to the Jenkins job and run it. The job should now run TSLint and Checkstyle on your Angular project and fail the build if any errors are reported. By following these steps, you can integrate TSLint and Checkstyle into your Jenkins build process, ensuring that your Angular project adheres to your code quality standards with every build
I see you have set the trigger wouldn't that mean job will run automatically? If so why did you clicked Build Now? If I have to set the build job to run after every 5 minutes would this be pattern H/5 * * * *? If so what is H stands here?
Hi Raghav, Thank you for the jenkins tutorial, i have one question, i was made one demo maven project and configure that with jenkins and it successfully run after this in same package i made one more class in cmd both classes was run but in jenkins only one class is running i want to run all classes in jenkins please help
hi......raghav sir thanks for ur guidance...... i want to be how can configure own git repo. own machine -{client & server} to access repo client user.... &how can create own repo url ..... pls explain completely solution..{linux machine}
Hi Gangaram, I have .a session on git & github. For a very specific scenario like yours will need to use linux or unix. I will try to do a session on this, but can take time.
I have one question, We have not linked with any git or svn repo. This means job is not doing a build for a real project. Then how its getting successful?
Instead of showing in Build queue (In 13:38 its showing in Build queue), But for me its downloading a file named as build queue also its not showing any count in Build Queue
In your case it's shows safe html....but in my Jenkins it shows that plan text....how I can change this.....and I also make simple job like only date command...select windows bash but it's shows build error...how I can solve this problem
hi getting exception like below ..while installing the suggested plugins for first time . "An error occurred during installation: No such plugin: cloudbees-folder"
Hi, I also get the same error. During the initial Jenkins installation itself I got this error and now if I try to install plugins it is asking me to install in .hpi format.
I want to send linux shell command or script to other remote Linux server from My Jenkins server as Job. I looking how is it possible, but I don't understand how defines destination. Maybe need install jenkins node for my remote linux? Or maybe create SSH KEY authority with ssh-keygen for Jenkins server access to remote linux server and use shell command in Jenkins Job, for example: ~# ssh root@remote.linux 'uptime; df -h'
Hi, for any kind of interaction between 2 system through jenkins, it (jenkins) shoul be installed on both And you can make one as master and other one as slave
Hi Abhay, did you install all suggested plugins. Check again, and check this too stackoverflow.com/questions/31935344/trigger-builds-remotely-does-not-appear-after-installing-build-token-root-plug
I followed as u said but facing errors. The current date is 15-03-2021 Enter the new date ( dd-mm-yy) Build step 'execute window batch command 'marked build as failure Finished:failure How i can solve this
I am getting this error, Any idea how to resolve this. using a window machine Build step 'Execute Windows batch command' marked build as failure [Checks API] No suitable checks publisher found. Finished: FAILURE
Best automation channel on YT and I think best materials on web as well. I'm learning network automation and network as code concept and your channel provides very solid foundation. I was not able to figure it out how this works with networking but your channel helped me to run first basic automated job for routers and switches. Other tutorial shows only how this stuff can be used but don't show how to set that stuff. Slow paced step by step explanation is very helpful for inexperienced people. Jenkins is easy to install and have nice GUI. Thanks for your hard work.
You're welcome
Very nice explanation. I like it very much. Looking forward for next sessions by you which will explain all the configurations in detail. Please publish asap.
Thanks Prathyusha for liking. Will create new sessions on Jenkins soon.
Very well explained tutorial. I was looking for something like this. This explains the CI process very clearly. Thanks Raghav :)
You're welcome Mehak
I want to thanks for your collaborations in trying to understand how this wonderful tool works...THX Sir!!!
most welcome
very crisp and upto the point explanation.
thank you for such detailed explanation of every element!
Glad it was helpful!
for anyone following along on windows, the cmd date equivalent is "date \T."
If you just give date, cmd asks for user input (set new date).
Thanks for adding Aman, You can also use echo 27-03-2018 | date
thanks
@aman: After runing build for 'date' command using option 'execute windows batch command' on windows , I a getting error below.
Started by user unknown or anonymous
Running as SYSTEM
Building in workspace C:\Users\me\.jenkins\workspace\Test2
[Test2] $ cmd /c call C:\Users\me\AppData\Local\Temp\jenkins12681198203882068479.bat
C:\Users\me\.jenkins\workspace\Test2>date
The current date is: 25-12-2023
Enter the new date: (dd-mm-yy)
C:\Users\me\.jenkins\workspace\Test2>exit 1
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
and using "date \T." getting below
Started by user unknown or anonymous
Running as SYSTEM
Building in workspace C:\Users\me\.jenkins\workspace\Test 3
[Test 3] $ cmd /c call C:\Users\me\AppData\Local\Temp\jenkins7093448914425868521.bat
C:\Users\me\.jenkins\workspace\Test 3>"date \T."
The system cannot find the path specified.
C:\Users\me\.jenkins\workspace\Test 3>exit 3
Build step 'Execute Windows batch command' marked build as failure
Finished: FAILURE
any idea on it?
I almost learn jenkins from your tutorials. You are a GEM. god bless u.
Thanks for your kind words Anil.
Hello Raghav - thanks for the tuorials. They are fantastic. Appreciate your help.
Glad you liked it. Keep Learning.
HI Raghav thanks for proving such a nice tutorial ..searching for solution for my work from a long time but finally I got help from here ..Please keep up the good work God bless you
Glad to see your message Rahul, All the best
i have gone through yours sessions. you explain very nice and it help me alot. thanks
you're welcome Kapil
Clear explanation and this helps a lot. Thank you for this great work .Sir!
You're welcome Geetha. keep learning.
He's the one real teacher in market lots of fake people's iam seeing most of them are m-minded.
So happy & humbled to see your message Daniel
Thanks a lot, Raghav, really helpful series about Jenkins, superb explanation!
Thanks for watching Michael
All your videos are very well explained. Thanks you.
You're welcome :
I don't usually comment but this tutorial series is very well planned and explained.
Thanks Arka
Interesting tutorial. You can also see the status of newly created job right on the desktop with a tool like CatLight build monitor
Thanks Tim, i will look into CatLight.
Thanks for the class.
you re' welcome.
Half way through, enjoying the content. Have taken some basic udemy courses but this is way more informative.
Glad to know this Michael, humbled.
Right.. This is much better than udemy course.. Really useful content.
Thank you! very nice explanation .
Hi
Hi Raghav, really your videos are easy to understand....please make a video for windows 10 OS also
Sure I will do Divya, although most of the stuff here will apply to windows 10. Once you have Jenkins other things should be the same mostly
Very nice Raghav! appreciate your work. Please post more videos.
i have shared your videos with my colleagues
Thanks for watching and sharing with others. I hope this reaches everyone who is in need and wants to learn step-by-step. Glad you liked it.
Very nicely explained! Thanks
Glad it was helpful Simon
Awesome explanation as always .Thank u sir 🙂
Always welcome Suchi
wow......again a very good explanation.
Thanks for watching Anjali
Nice video! To get the jobs to run, I had to check ""Restrict where this job can be run" and enter the label for the node we previously created. Not sure why he didn't have to in the video, but try that if your jobs are stuck in Pending.
will cover that Jesse
Great Series.
Thanks a lot Ritesh
Very clear...Thanks for the explanation :)
You are welcome Manas
Nice Explanation..Thank you..
You're welcome
Hi Raghav, your tutorials are very good and it helped me a lot. Could you please do a tutorial on how to integrate python unit tests with Jenkins
Sure will do Karthik
Excellent Explanation.
Thanks for watching and liking Prasanna
very helpful and clear explanation. Please do videos on kubernetes too.
Good Luck
Will do it soon Sona. thanks for watching.
Great work Raghav, very well explained happy to learn from you..
So nice of you
superb tutorial..have u published sessions beyond #7. detailed jobs configuration.
Thanks Rajesh for liking. Will be publishing further sessions soon. Stay tuned..
Excellent training videos Raghav, keep it up. What are the best use cases for triggering jobs remotely? why and when would someone need to do that? Would appreciate your feedback.
Hi, thanks for watching. There can be many reasons like your jenkins is setup on some remote cloud system or there is a distributed system in place. In most of the cases, we have jenkins running on a separate cloud server.
Simply Awesome Sir
Thanks Seetham
Thank you Sir for sharing this content
Thanks Calvin for watching and learning.
Great stuff sir !! Thanks a lot !
Your Tutorials are very informative, is it possible to do more tutorials on AWS, GCP, Kubarnaties
Thanks Naga, yes I will do more tutorials on these topics
Thank you sir very nice explanation we waiting for next section; please take one project and explain point to point sir we are maintain one note book that's the resign sir ; vedio maintain bellow 20 minutes;
thank you sir
I am glad you found it helpful.
I will add more sessions and project soon.
Great Job , clear and helpful Thanks sir
Glad to know this. Keep learning.
Thank you! Good tutorial!!
Hi Ragav, Thanks a lot for this videos. Very well explained. I have a query. You have explained triggering of job test1 , when job test2 is triggered. Here test1 and test2 are in same jenkins server. How to configure build trigger on job test1 when job test2 is in different jenkins server.
HI Akash, you can try Generic Webhook Trigger plugin
this should help you - stackoverflow.com/questions/11560992/can-one-jenkins-trigger-a-job-on-a-remote-jenkins
Thanks a lot Raghav. This link helped.
Really useful content.. Can you please create series for docker and kubernetes..
Thanks Sumeet. Docker you can find here - automationstepbystep.com/online-courses/ Kubernetes will be coming soon
Excellent explanations for a beginner. Can we expect a docker tutorial soon?
yes very soon. thanks for watching. Keep learning.
subscribe to get updates on new videos.
Very helpful, thanks!
You're welcome
Very helpful. Can you please do videos on integration of docker, git with Jenkins? If done already, pls share me links
Hi Sanjeev, you can find in Docker playlist - automationstepbystep.com/online-courses/
Отличный урок.
Большое спасибо
Thank you.
You're welcome Roman
its really u r nice mentor, thanks for sharing this blog, it is possible for sharing some interview questions ask in interview
I will do that soon Bharat.
Hello Sir, What is the difference between ' Build Trigger - Build after other Projects are Built' and 'Post Build Actions' in example shown in video.
Instead of choosing 'Post Build action' in testjob2' as test3...if we directly give in test3 (build trigger when testjob2' completed' - Both works same...i.e. both options same..OR is there any difference...for particular example (Chain Job Execution)
Hi Sumanshu, Build trigger is we are providing the trigger for this current job. Post Build Action we are sending the trigger to another job. Yes for this chaining, both can work
Thank You... Great Explanation
You're welcome Raj
Thanks so much by your valuable material. Good work!... I will wait eagerly your coming new material. Keep doing your good work!. Consider work around with Jenkins 2.0. It offers new items now.
Thanks Manuel for watching and liking. Will check Jenkins 2.0.
Let me know if you have an account in twitter, to share this playlist.
Hello Sir.. can you please start the series for protractor testing .. it will be lot of help if it's possible.
I will do it soon Jagdish
Thanks a lot for you work!
I do exactly like you but build queue not working for me, it still empty
Hi Ismaail, do you have any logs for this.
Hi Raghav, you answered my question by talking about logs, when I consulted Jenkins logs I realized that the execution is normally done remotely but faster. This leaves no time for it to appear in the build queue ;)
thank you very much!
Thank you
Most welcome
Many thanks for the video. Many options have changed in the latest version of Jenkins but the mains things are unchanged.
Finally my build succeeded after I read the comments and used echo 26-08-2020 | date
Thanks Suprotim for the message.
Have to give the date in correct format....mine worked after I enter echo %DATE%
@@gajapathij2010 Hey thanks this worked for me
nicely explained raghav
Thanks for watching Gaurav
Hi, Raghav Pal! I like your video which help me learn about Jenkins as a beginner. I also like your google background picture. I wonder which extension you are using. Please tell me where I could get it when you are free.
hi Le, glad you know you are watching and learning from this channel. The browser background is through momentum (chrome extention)
Thank you very much.
You're welcome Guram
Hi raghav.. Thanks for the video these are awesome.. I want to ask one thing are these videos are enough for Automation Tester..?
Hi Roopa, yes this is enough for any automation project. There may be few more things to learn specific to the project/process but overall this will make the complete foundation for any jenkins project
@@RaghavPal thanks 👍
Hi Raghav,
Im from Pak, your tutorials are very informative and makes the tech easy to learn. I have been watching your tutorials from a long time.
I have a usecase to run playwright test scripts in my Raven service before pushing the build if playwright scripts are passed. If the build fails it is discarded.
Can you help out with its jenkinsfile?
Hassan
Here is a Jenkinsfile that you can use to run Playwright test scripts in your Raven service before pushing the build:
```
pipeline {
agent any
stages {
stage('Build') {
steps {
sh 'npm install'
sh 'npx playwright test'
}
}
stage('Deploy') {
when {
expression {
return sh(returnStatus: true, script: 'npx playwright test --exit-on-failure') == 0
}
}
steps {
sh 'npm run deploy'
}
}
}
}
```
This Jenkinsfile will first install the Playwright dependencies and then run the Playwright test scripts. If the Playwright test scripts pass, then the build will continue to the `Deploy` stage. If the Playwright test scripts fail, then the build will be discarded.
Here is a breakdown of the different stages in the Jenkinsfile:
* `Build` stage: This stage installs the Playwright dependencies and then runs the Playwright test scripts.
* `Deploy` stage: This stage is only executed if the Playwright test scripts pass. In this stage, the `npm run deploy` command is executed to deploy the application.
I hope this helps
@@RaghavPal thanks for the prompt response. i should have also placed my test folder in the Raven repo? As it is going to run locally and if thats the case i will also set url to localhost in my playwright config file? Manifest.yml has also been already configured in the bitbucket.
Yes, you should place your test folder in the Raven repo. This is because the Jenkinsfile will need to be able to access the test files in order to run them.
If the playwright test scripts are running locally, then you will need to set the URL in the playwright config file to localhost. This is because the playwright test scripts will need to be able to connect to the Raven service running on your local machine.
Thanks @@RaghavPal
Really appreciate for your help.
when i give shell command as date , jenkins job is failing complaining about the java (i have installed jenkins using .exe instead of war .
Hi Arpitha, pls use this command
Use this if date command is throwing issue:
echo 24-10-2019 | date
Is possible a video with integration between Jenkins and TestLink ?
I can try in some time.
Great, i will wait, thank you for help !!!
Hi Raghav can you explain me difference between Normal build and Parameterized Build..Thanks
Hi Murali, Parameterized Build are for jobs that take external parameters. Read details here:
wiki.jenkins.io/display/JENKINS/Parameterized+Build
hi can you please share a video regarding integration of testng files in Jenkins
Hi, please elaborate, what exactly is the use-case.
excellent
Thanks for watching
Hi Raghav , Thanks for all your tutorials . I have set up jenkins with Maven and git. My run creates a folder called 'logs' inside workspace that stores the logs for failed cases ... I DO NOT want to expose workspace folder to others but want the 'logs' folder to be accessible .. Could you please guide me HOW and WHERE in jenkins can I copy the folder so its accessible when the link is shared .. Thanks
Hi Kyati, One of the ways can be you can create a shared folder and have the logs copied there manually or create some batch job for that. Within Jenkins, I will need to check. See if this helps you - www.jenkins.io/doc/book/system-administration/viewing-logs/
Why in test2 post build script are we attaching test3 why not in test3 job we are setting build after test2. Btw really really nice videos
You can do anyways as per your needs Utkarsh, thanks for watching
Hey Raghav, Great series! Easy and Depth. I have a quick question. I am using MAC and recently tried to build a job in jenkins. But the jenkin build ended in error "cd: Directory not found" but i do have the directory and it has the permission 777. Any thoughts on this?
Hi Suresh, pls send me the commands you used
Are there any spaces in any dir names in the path.
Hi Suresh, you are adding this in Build step - execute shell script right. Is there any other info you get in the logs
Pls send me your commands.
hi thanks for your tutorials, i am looking for a job to from jenkins cli.., as far as i searched i got videos only on already built/created jobs, but i want to know how to create new/configure job from jenkins cli (with all parameters what we give inside of a job)... please provide if you have any info on this.
i have gone through our 4th tutorial on jenkins cli but not found what i am looking for.
Thanks in advance
Hi Varun, if you goto jenkins cli (e.g. localhost:8080/cli) there you will find an option to create-job. This will use an xml file for configuration. I will try to do a video on this soon.
hi thanks for your reply, i have tried the same thing but after executing the command, command prompt is not coming back(not writing/happening) anything (waited for 10-15min),
After trying with multiple options i got to know like we need to add arguments like -v -f n N etc., but no luck.
If possible please do provide the video for creating new job and also copy from existing job and build.
waiting for the video. Thanks in advance.
Sure Varun, will take out some time for this soon.
Hi Raghav, Thanks for your tutorials, If possible could you please post some more in depth videos on JMeter Beanshell scripting. That will help us a lot, Thanks.....😃
Noted Raj
What is the use of job run remotely.
Which scenario use this option
Thanks for advance
Hi Sudhakar, that is to trigger a job remotely from different machine.
Automation Step by Step - Raghav Pal
Thanks for answering the question.
Youre a such great person
Once again thanks.
You're welcome Sudhakar
Hi Raghav,
Thanks for the tutorial, really it's good.
I need your help regarding , I am trying to write a script to retrieve the url of artifacts uploaded in artifactory via Jenkins. But I am not getting were should I start from.....could you please help me on this...??
Hi Rahul, need to understand you requirements in detail. Have you already written the script and want to run it via Jenkins ?
How to create a job which will list the content of home directory. Pls sir reply...and also how to create another job which will trigger automatically after first build complete
Hi Supriya, for listing contents of your home directory you can add a simple job and in the commands goto the location of your home directory and then use dir (windows) or ls (mac) command.
You can chain the jobs in the Post Process actions. You will find this if you see the next tutorials in this series - ruclips.net/video/ndLbn24OwQg/видео.html
Automation Step-by-Step - Raghav Pal sir I m getting the error while creating the job is system cannot find the file specified
Supriya, i did not exactly got the issue, what did you try to do. Any error/logs info will help.
Your series on jenkins is too good however facing issue while building jobs every time it gets failed and by the way I'm running "date" command on windows machine is something to be configured in this case please revert?
What is the error in the logs console. Pls try this command
echo 15-03-2020 | date
@@RaghavPal Issue resolved , after doing some jenkins configurations settings thank you this command too worked👌
Hi sir,
I am trying to achieve master slave architecture, but unable to keep 2 nodes online and trigger jobs simultaneously on both.
could u please suggest me something
Hi Shivani, Have you set the executors, check this - stackoverflow.com/questions/38094132/how-many-jenkins-executors-can-you-have
How to run tslint and checkstyle in angular application via jenkins job?
Hi Pallavi,
To run TSLint and Checkstyle in an Angular application via a Jenkins job, you can follow these steps:
Install TSLint and Checkstyle:
Install TSLint and Checkstyle as a local dev dependency in your Angular project by running npm install --save-dev tslint checkstyle.
Configure TSLint and Checkstyle:
Configure TSLint by creating a tslint.json file in the root of your Angular project.
Configure Checkstyle by creating a checkstyle.xml file in the root of your Angular project.
Run TSLint and Checkstyle in your Jenkins job:
In your Jenkins job, add a build step to run TSLint by executing the command npx tslint --config tslint.json 'src/**/*.ts'.
Add another build step to run Checkstyle by executing the command npx checkstyle-alt -c checkstyle.xml 'src/**/*.ts'.
Configure Jenkins to fail the build if TSLint or Checkstyle reports errors:
In your Jenkins job, add a post-build step to fail the build if TSLint or Checkstyle reports any errors. You can use the Jenkins plugins like Text-finder or Conditional BuildStep to implement this.
Save and run the Jenkins job:
Save your changes to the Jenkins job and run it. The job should now run TSLint and Checkstyle on your Angular project and fail the build if any errors are reported.
By following these steps, you can integrate TSLint and Checkstyle into your Jenkins build process, ensuring that your Angular project adheres to your code quality standards with every build
I see you have set the trigger wouldn't that mean job will run automatically? If so why did you clicked Build Now? If I have to set the build job to run after every 5 minutes would this be pattern H/5 * * * *? If so what is H stands here?
hi Waheed, if you click the ? icon besides build periodically, there the cron expression is explained very well.
where can i find war files to specify the path while Automated Deployment.
Please provide the exact path.
Thanks in advance.
Hi Arun, this path will be as per your settings. Its the path where your project places the war files.
is maven prerequisite for jenkins?
Not for Jenkins, But if you are running any project, or any program that requires maven, it should be available.
Hi raghav , is it compulsory to learn jenkins and git for 2 years of experience guy...?..
Hi, If you know, it will help you a lot, and it's very easy, you can get the basics in few days
Hi Raghav, Thank you for the jenkins tutorial, i have one question, i was made one demo maven project and configure that with jenkins and it successfully run after this in same package i made one more class in cmd both classes was run but in jenkins only one class is running i want to run all classes in jenkins please help
Hi Jitendra, check your jenkins commands and logs
@@RaghavPal Thx now it's working
hi......raghav sir thanks for ur guidance......
i want to be how can configure own git repo. own machine -{client & server} to access repo client user.... &how can create own repo url .....
pls explain completely solution..{linux machine}
Hi Gangaram, I have .a session on git & github. For a very specific scenario like yours will need to use linux or unix. I will try to do a session on this, but can take time.
I have one question, We have not linked with any git or svn repo. This means job is not doing a build for a real project. Then how its getting successful?
As of here, Jenkins is running on the local system. You can watch later sessions for git and remote executions
Instead of showing in Build queue (In 13:38 its showing in Build queue), But for me its downloading a file named as build queue also its not showing any count in Build Queue
Hi Krishna, pls check the steps again, in case you missed something.
In your case it's shows safe html....but in my Jenkins it shows that plan text....how I can change this.....and I also make simple job like only date command...select windows bash but it's shows build error...how I can solve this problem
If possible please make a video for windows Sir....first job creation 🙂
I will check for date command Use this if date command is throwing issue:
echo 27-03-2018 | date
@@RaghavPal It shows that...Build step ' Execute windows batch command ' marked build as failure
@@RaghavPal "date" command used for windows command prompt or not ?
Try to use
"date \T."
Thanks Raghav
Most welcome Rakesh
hi getting exception like below ..while installing the suggested plugins for first time .
"An error occurred during installation: No such plugin: cloudbees-folder"
Did you install from manage plugin.
Hi, I also get the same error. During the initial Jenkins installation itself I got this error and now if I try to install plugins it is asking me to install in .hpi format.
Hi,
I updated Jenkins and it deleted all the old information jobs and pipelines, do we have a way to restore it?
all the information is there in .jenkins folder, if you have not removed it, you can get all back
Hi Raghav (13.1 video) i am not getting any build queue and the link not opening?
hi Gopinath, can you recheck the url with ip and port is correct. Try again and send me some more details to troubleshoot if it does not work.
I don't understand how you can send a command to a remote linux host (bash command or script). Where do you specify where to deliver the command?
Hi Girts, looks like the question is not related to this video. You can tell me your scenario and issue you are facing.
I want to send linux shell command or script to other remote Linux server from My Jenkins server as Job. I looking how is it possible, but I don't understand how defines destination. Maybe need install jenkins node for my remote linux?
Or maybe create SSH KEY authority with ssh-keygen for Jenkins server access to remote linux server and use shell command in Jenkins Job, for example:
~# ssh root@remote.linux 'uptime; df -h'
Hi, for any kind of interaction between 2 system through jenkins, it (jenkins) shoul be installed on both
And you can make one as master and other one as slave
how to run command line arguments in jenkins
Hi Sraven, you can see ruclips.net/video/ooA8RS3hC6k/видео.html & ruclips.net/video/hgqBGNPlLlU/видео.html
Hi Raghav,
I got the steps but I didn't understand why we are doing this.
Hi Abhijit, you can watch the jenkins series from beginning. That should help. ruclips.net/p/PLhW3qG5bs-L_ZCOA4zNPSoGbnVQ-rp_dG
in build periodically when we open in other tab in windows it is coming blank screen
Hi Pratyush, did you check with a diff ver of Jenkins
hello sir, i am following all steps but i am not getting build queue can you pls help me!!
Hi Deepak, what exactly is the error you are getting. What step you are stuck at.
Seriously like your attitude... :) hats off to u man... god bless you with lots hapiness :)
your videos are very slow, I have to put it in 2x speed to hear it at normal pace. other than that, great content
Hi, I will increase the speed in new videos. Thanks for your feedback
In My jenkins I am not getting option "Trigger builds remotely" under Build Trigger
Hi Abhay, did you install all suggested plugins. Check again, and check this too stackoverflow.com/questions/31935344/trigger-builds-remotely-does-not-appear-after-installing-build-token-root-plug
I followed as u said but facing errors.
The current date is 15-03-2021
Enter the new date ( dd-mm-yy)
Build step 'execute window batch command 'marked build as failure
Finished:failure
How i can solve this
Hi Pavithra, Use this if date command is throwing issue:
echo 27-03-2018 | date
OR
use "date \T."
I am getting this error, Any idea how to resolve this. using a window machine
Build step 'Execute Windows batch command' marked build as failure
[Checks API] No suitable checks publisher found.
Finished: FAILURE
Hi Vikas, this should help
www.reddit.com/r/jenkinsci/comments/ithgek/checks_api_no_suitable_checks_publisher_found/
date is not considered as a valid windows batch expression( Build option in project)
Hi Gourab. try this command
echo 27-03-2018 | date
Hi Gourab. try this command
echo 27-03-2018 | date