Selenium Integration with Jenkins and Github

Поділитися
Вставка
  • Опубліковано 19 вер 2024

КОМЕНТАРІ • 138

  • @monikabisht5821
    @monikabisht5821 3 роки тому +3

    Thanks mukesh once again ur video helped me a lot i am seeing so many videos for jenkins ,right now i am working on it ,but atlast i got my problem solution from ur videos ,it really helped me a lot.. this is my 2nd comment on youtube history i rarely comment on youtube but ur videos make me feel so happy to comment bcoz it helped me a lot in my work as well as improving my skills

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому +2

      Hi Monika, I am really glad my video helped me to fix your issue and keep learning. Let me know if you need any help in future too.

  • @AmitGrover321
    @AmitGrover321 4 місяці тому +1

    Thank you so much Mukesh for making indepth understanding for Jenkin integration with Selenium, It is very useful for interview purpose..

  • @bvkirankumar
    @bvkirankumar 4 роки тому +2

    Thanks Mukesh for taking time and explaining very clearly

  • @saileshramesh8113
    @saileshramesh8113 3 роки тому +1

    Thank-you for this wonderful video, I'm in my training period, this really helped me flex my skills in front of my managers. Your videos are best Mukesh.

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому +1

      Great to hear! Sailesh, keep learning and Happy Weekend.

  • @muneet4079
    @muneet4079 4 роки тому +3

    Thanks Mukesh, I could run the test. But I didn't see 'Cloning the Git repository' in my console output. Also, I saw this :The recommended git tool is: NONE. Yet Jenkins showed 'Fetching upstream changes' and finally ran the tests successfully.

    • @muneet4079
      @muneet4079 4 роки тому

      I also got a couple of warnings before Jenkins jumped to TESTS.
      WARNING] error reading C:\Users\munee\.m2
      epository\org\hamcrest\hamcrest-core\1.3\hamcrest-core-1.3.jar; invalid LOC header (bad signature)
      [WARNING] error reading C:\Users\munee\.m2
      epository\org\apache-extras\beanshell\bsh\2.0b6\bsh-2.0b6.jar; invalid LOC header (bad signature)
      [WARNING] error reading C:\Users\munee\.m2
      epository\junit\junit\4.13\junit-4.13.jar; Unexpected end of ZLIB input stream
      Any idea how to get rid of these? Though the tests ran successfully.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      HI Muneet, if you can share the screenshot then I can provide my input. My email is mukeshotwani@learn-automation.com

    • @muneet4079
      @muneet4079 4 роки тому +1

      @@Mukeshotwani Thanks so much for looking into my query. Sure, I am sending it you with the issues.

  • @sajjad413
    @sajjad413 3 роки тому +1

    Great job I would also like to add that we need to use the Jenkin UserId and Password.

  • @amirdas2820
    @amirdas2820 5 років тому +2

    Mukesh sir, i am waiting for github git branching & how it works , when u will upload that video.

    • @Mukeshotwani
      @Mukeshotwani  5 років тому +1

      Hi Amir after this series I will upload

  • @girishkumar1799
    @girishkumar1799 3 роки тому +1

    Thanks Mukesh, I have watched all the videos, and getting sence of the java, selenium, github... while executing this, i am getting this message, could you please let me know, is it issue with the connectivity ?
    ERROR: Couldn't find any revision to build. Verify the repository and branch configuration for this job.
    Finished: FAILURE

  • @sajjad413
    @sajjad413 3 роки тому +2

    If we want to follow the video then we should not miss any steps or forward the video that can cause failure of the test because sometimes in rush we miss import click or select.

  • @arundada89
    @arundada89 5 років тому +2

    Hi Mukesh, This is an excellent series and its very helpful. You are doing a great job. Thank you for all that you are doing. Please request you to add videos on Docker basics and running jenkins in dockers.. One question, after setting up jenkins as suggested and running my first job, i'm getting error saying "'mvn' is not recognized as an internal or external command,
    operable program or batch file.." but when i run the same command in cmd prompt it is working.Could you please help

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Arun,
      You need to set MAVEN_HOME path in jenkins as well then it will run.
      I am planning for docker as well soon I will publish.

    • @greengobis
      @greengobis 5 років тому +1

      Mukesh MAVEN_HOME in enviroment > advanced settings right??

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Yes User variable section

  • @jaishankar532
    @jaishankar532 5 років тому

    Clear and great presentation.... Thanks

  • @PankajSharma-pl3nq
    @PankajSharma-pl3nq 5 років тому

    I'm new to Jenkins, so please go easy!
    I have a web application which we are developing, and we've started automating our release using Jenkins.
    I also have a standalone Selenium WebDriver script which will perform a Smoke test on our web app. We usually run this manually each time there's a new deployment.
    I heard Jenkins can automatically trigger Selenium tests. So what I did was to create a batch file, which will in turn call the Selenium script. I added a Build Step which will call this batch file.
    What's happening now is Jenkins first Builds the WAR file, executes the batch (for selenium) and then deploys it to the target Tomcat.
    But I was wondering if I could change the order to Build WAR --> Deploy to Tomcat --> Call the Batch file that executes Selenium Test. I want to do this as Jenkins Tests before deploying, which means my Selenium test still runs on the old build. This makes little sense, as I would rather run the Selenium test on the new build.
    In short, is there a way I can execute the Batch file as part of a Post Build Step rather than a Build Step?

  • @AnilKumar-up5qx
    @AnilKumar-up5qx 4 роки тому +1

    @MukeshOtwani: Thank you so much for this beautiful explanation. We just love your work, is there a video to send reports via email as well.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Yes Anil, in Jenkins you have this feature, after build is success or failure, it will send emall.

  • @ashirbadratha5135
    @ashirbadratha5135 4 роки тому +1

    Hi Mukesh,
    Thanks for posting the videos, they are really helpful.
    I have a quick question related to the above,
    Let say i have an Automation Framework in place and my browser, URL and credentials are already set inside the Framework. Hence can you please tell as when Jenkins parameters are set what will happen to those predefined parameters already defined inside the Framework.
    or
    These will override them.
    Thanks,
    Ashirbad

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hi Ashirbad, if you want to pass parameter from jenkins then you need to maintain the same key in Jenkins job.
      Here is the flow
      Case 1 - Jenkins will pass the parameter which you can accept in maven and then in testng
      Case 1 - Jenkins will pass the parameter which you can accept directly in testng parameters.

  • @prabodhghosh662
    @prabodhghosh662 5 років тому +1

    Hi @Mukesh, how do we publish the ExtentReport from Jenkins? Also, how do we attach the extent report in the email which is triggered from Jenkins?

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Praboth I have shown how to attach normal HTML file and soon will be posting for extent report as well

  • @kritidey2055
    @kritidey2055 4 роки тому +2

    Hi Mukesh, This video was really helpful but I need a help from you as I am stuck with an issue how to launch the Google chrome from my BitBucket code as I am unable to understand from the video how you mentioned the goals and actions in the Build section with Dbrowser= Chrome. Could you please help as I have no systempropertyvariables declared in pom but I have the browsername and executionmode mentioned in testng.xml file

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hi Kirti please share pom.xml and error log so that i can guide you accordingly.

    • @kritidey2055
      @kritidey2055 4 роки тому +1

      @@Mukeshotwani Thanks for your reply. I solved it actually it was an issue related to Linux server.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      @@kritidey2055 okay 👌

  • @ishubagga4579
    @ishubagga4579 5 років тому +1

    Hi Mukesh, Thanks for sharing the information.
    Actually, I have a maven project which prints something. Let say a simple hello world main function and it prints "hello world" when I run as java application from eclipse. I pushed this code to github and when I trying to trigger the same from jenkins then I can see Build success. However, I am not seeing the print result "Hello World".
    Any help here would be much appreciated. Thanks!!

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Ishu, What configuration you did in pom.xml file.
      In order to run the test (testng) we have to use maven surefire plugin which will run testng.xml file.
      If you are using plain Java program (without testng) then you have to use www.mojohaus.org/exec-maven-plugin/

  • @iscgovea
    @iscgovea 5 років тому +1

    Hi Mukesh excellent video, I made all what you did to create a maven job and try to run a goal for my selenium framework, but everytime I faced this issue "[ERROR] Failed to execute goal on project LithiumWebTests: Could not resolve dependencies for project com.selenium.lithium:LithiumWebTests:jar:0.0.1-SNAPSHOT: Could not find artifact com.sorc.qa.selenium.utils:SeleniumUtils:jar:1.0-SNAPSHOT -> [Help 1]", could you help me to fix it?

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Luis seems you are missing SeleniumUtis jar in your project.
      If this jar is publicly available then mention maven dependency and if this jar is private then mention the jar path in pom.xml

  • @nikhilgupta110
    @nikhilgupta110 4 роки тому +2

    Thanks mukesh 😊

  • @subbaraogaddam5777
    @subbaraogaddam5777 5 років тому +1

    Hi Mukesh, I am facing the error while execute in the jenkins. From eclipse and from command prompt it is working fine. Error is the fallowing:
    org.openqa.selenium.WebDriverException:
    unknown error: Chrome failed to start: exited abnormally
    (unknown error: DevToolsActivePort file doesn't exist)
    (The process started from chrome location /usr/bin/google-chrome is no longer running, so
    ChromeDriver is assuming that Chrome has crashed.)
    Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
    System info: host: '192-168-24-97', ip: '10.10.10.208', os.name: 'Linux', os.arch: 'amd64',
    os.version: '5.0.0-29-generic', java.version: '1.8.0_222'
    Driver info: driver.version: ChromeDriver
    remote stacktrace: #0 0x55f73e8db959

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Subbarao seems Jenkins is running on Linux and chromdriver sessions are not compatible with chrome browser.
      Try changing driver version.

  • @AshwinKhalnayak
    @AshwinKhalnayak 4 роки тому +1

    Hi Mukesh, will it possible for you to add one on: Selenium Integration with Jenkins & SVN'
    'Selenium Integration with Bamboo & SVN'

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Ashwin, concept is same like above, when you use Bamboo or TeamCity or any other CI tool. I will try to cover teamcity and Bamboo is coming videos.

    • @AshwinKhalnayak
      @AshwinKhalnayak 4 роки тому +1

      @@Mukeshotwani Thank you very much Mukesh, appreciate your effort!!!

  • @vibhorsharma2436
    @vibhorsharma2436 3 роки тому +2

    Hi Mukesh, when i run the command newman --vesrion in Jenkin it gives me 'newman' is not recognized as an internal or external command, operable program or batch file. but when i check newman version in cmd it is perfectly fine, could you please help me on this

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому

      Can you share screenshot?

    • @vibhorsharma2436
      @vibhorsharma2436 3 роки тому

      @@Mukeshotwani
      Started by user admin
      Running as SYSTEM
      Building in workspace C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\check_version
      [check_version] $ cmd /c call C:\WINDOWS\TEMP\jenkins11482978006318808689.bat
      C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\check_version>newman -v
      'newman' is not recognized as an internal or external command,
      operable program or batch file.
      C:\WINDOWS\system32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\check_version>exit 9009
      Build step 'Execute Windows batch command' marked build as failure
      Finished: FAILURE

    • @princephagwara
      @princephagwara 2 роки тому

      @@Mukeshotwani same with me

  • @shaikmastanvali2526
    @shaikmastanvali2526 4 роки тому +1

    Hi, i m getting below error when we build through jenkins
    org.openqa.selenium.WebDriverException:
    unknown error: cannot find Chrome binary

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Shaik, is your code working without Jenkins? As per log I can see Selenium is not able to find chrome binary, Make your chrome is installed properly in your local system or in VM where test is running.

  • @ankitshrivastava9061
    @ankitshrivastava9061 4 роки тому +1

    Hello Mukesh , getting the error "could not create the java virtual machine in jenkins"

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Ankit, please use LTS version of Jenkins with Java 8

  • @chirag6283
    @chirag6283 4 роки тому

    Hi Mukesh, I am getting "Compilation Error " while running the test from Jenkins
    "/C:/Users/HP/.jenkins/workspace/Amazon_TestRunner/src/main/java/com/qa/pages/LoginPage.java:[13,19] package com.qa.test does not exist" .

  • @ani6409
    @ani6409 4 роки тому

    Hello Mukesh,
    I did same configuration for gmail account to send the mail, but its failing, please suggest

  • @narayanang9208
    @narayanang9208 4 роки тому

    Hi Mukesh
    I have small dout how to access mobile using c#

  • @ashutoshgupta964
    @ashutoshgupta964 4 роки тому +1

    Hi Mukesh,
    Please help me out for resolving below build failure.
    Every time when i build my Jenkins demo project lets say for java -version, it's got failed by giving -" 'cmd' is not recognized as an internal or external command,
    operable program or batch file.
    " error.
    console:
    C:\Users\acer a\.jenkins\workspace\MyTest>mvn -version
    Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
    Maven home: D:\Software Support\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin\..
    Java version: 1.8.0_131, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_131\jre
    Default locale: en_IN, platform encoding: Cp1252
    OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "windows"
    'cmd' is not recognized as an internal or external command,
    operable program or batch file.
    Build step 'Execute Windows batch command' marked build as failure
    Finished: FAILURE
    Thanks!!

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hi Ashutosh, I hope you have proper JAVA_HOME path variable set and you are using build window batch from Jenkins.

  • @somankobhattacharyay2846
    @somankobhattacharyay2846 3 роки тому

    Hey Mukesh any helo for this issue while trying to connect and clone for the Jenkins jobs? - Couldn't find any revision to build. Verify the repository and branch configuration for this job.

  • @chandrahasas5779
    @chandrahasas5779 4 роки тому +1

    Any video with - Remote Jenkins server, selenium and maven. In realtime project no one installs Jenkins on local system.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Chandra, agree with you. Installation will be same for Remote Machine as well.
      Once Jenkins is hosted in your network then you can access then via ip or host name as well.
      Jenkins also support master slave concept where you can connect multiple system as slave.

  • @testautomation8431
    @testautomation8431 4 роки тому

    Hi I was getting , "An error Occured" when i click on Install suggested plugin once i launch and entered the password.Could you please help here

  • @ravishsingh6274
    @ravishsingh6274 5 років тому +1

    Hi Mukesh,
    Please share video selenium integration with litmus

  • @anbuazhagan6607
    @anbuazhagan6607 5 років тому

    The browser should not open sir and one more thing I used the web driver manager sir may the issues comes under this or?

  • @SureshKumar-no7rs
    @SureshKumar-no7rs 4 роки тому +1

    Hi, how did you configure GIT in JENKINS? I was getting error "Failed to connect to repository : Error performing git command:"... even though I gave the GIT installation path in JENKINS. Later figured out on how to find the git path through power shell and in my case it was 'C:\Program Files\Git\cmd\git.exe'... After setting this path in 'Global Tool Configuration' for GIT, I was able to run the build

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому +1

      Hi Suresh, Thank you for addressing this issue.
      Yes, sometimes Jenkins does not detect using bin directory so we need to provide C:\Program Files\Git\cmd\git.exe

    • @saikiranpalugula802
      @saikiranpalugula802 4 роки тому

      @@Mukeshotwani Thank you Mukesh i was facing the same issue and it worked for me

    • @saikiranpalugula802
      @saikiranpalugula802 4 роки тому +1

      Thank you @Suresh i was facing the same issue and it worked for me

  • @kw5218
    @kw5218 2 роки тому

    Is robotics upload will affect our script when we executing script through Jenkins in headless mode?

  • @anbuazhagan6607
    @anbuazhagan6607 5 років тому

    Hi sir,
    I was facing the issues like below, on Ubuntu 16.04.
    [ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 2, Time elapsed: 3.29 s

  • @crazykyoug2153
    @crazykyoug2153 3 роки тому +1

    Where will the git repo clone in my local machine? Suppose if I want to clone git in E: directory then how to do that?

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому

      Hey Mate, You can use windows command (git commands) if you want to use in some other directory.

  • @greengobis
    @greengobis 5 років тому

    You can restart your Jenkins by simply typing /restart after localhost:8004.

  • @shanthalan164
    @shanthalan164 4 роки тому +1

    Hi sir Could you please tell me which credentials u are providing while cloning with git hub, I'm not able to create build

  • @alexandergarcia3523
    @alexandergarcia3523 4 роки тому

    help me! the execute a test on jenkis, I get the result:
    Caused by: net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver (unknown error: Chrome failed to start: exited abnormally.
    (unknown error: DevToolsActivePort file doesn't exist)
    (The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

  • @umangsharma7447
    @umangsharma7447 5 років тому +1

    Mukesh .. thank you !!

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Thanks Mate :) What is your name? I can see your channel name only

  • @WALTERYBARRASARI
    @WALTERYBARRASARI 5 років тому +1

    please you can example with selenium, phyton and jenkis also Github?? thx

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Walter Jenkins github process will be same only in Jenkins build command will change I will try to post video on this.

  • @ranjithraja2322
    @ranjithraja2322 4 роки тому +1

    Does it manadatory to give port number while running war file in common prompt?

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hey Ranjith, by default jenkins takes 8080 port number so if any other application is using 8080 then you can specify other port. In my case 8080 was used by some other application so I used different port.

  • @subhasish0072007
    @subhasish0072007 4 роки тому +1

    While configuring getting this below error:- Jenkins requires Java versions [8, 11] but you are running with Java 13
    .How to upgrade Jenkins file or should I need to downgrade the JDK version?

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Subhasish, I am using Java 8 for all tutorials.

    • @subhasish0072007
      @subhasish0072007 4 роки тому

      @@Mukeshotwani yeah after installing Java 11 my problem got resolved. Thanks for ur update .

  • @vsu1225
    @vsu1225 5 років тому +1

    Hi Mukesh, can you please make a video on web services, if we receive wsdl request how can we prepare Test cases and Test scripts in excel before going to test Web services.is it necessary to write test cases in excel for wsdl file?

    • @Mukeshotwani
      @Mukeshotwani  5 років тому +1

      Sure I will make video on this too

    • @vsu1225
      @vsu1225 5 років тому

      @@MukeshotwaniThank you for the reply.I attending the interviews they are asking webservies.
      I watched many videos but they are not explaining the test cases and test scripts for webservies. They download wsdl file and create testsuites.. Test cases in soapui.. But end of the day we have write the testcases for web
      Servies. It will help to all who are on the job trails in web services and for interview purpose and real time guys who got a chance to work on web services .

  • @nrravitej2498
    @nrravitej2498 5 років тому

    HI Mukesh, i got logged out automatically after some time, but when i try to login with the password i set, its not accepting, what should i do , how should i reset the password of jenkins, please tell

  • @abhilan9369
    @abhilan9369 4 роки тому +1

    Hi, my browser in not opening when i run the test case in Jenkins, is there any config or settings i have to change to see the browser?
    As of now Jenkins is running headless browser

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Abhi if you install Jenkins as exe file then it will run in headless mode. If you install jenkins from cmd like I did in that video, you wont get this issue.

    • @abhilan9369
      @abhilan9369 4 роки тому +1

      @@Mukeshotwani OK thank you, you helped me a lot

  • @abraham2961
    @abraham2961 5 років тому +1

    Hey Mukesh could you please complete your framework video kindly

    • @Mukeshotwani
      @Mukeshotwani  5 років тому +1

      Hi Rehan this is all part of framework only

    • @abraham2961
      @abraham2961 5 років тому

      @@Mukeshotwani yes but you left out in custom library section in framework please don't get me wrong and check ur telegram msg shared something

  • @sushilarauthan9607
    @sushilarauthan9607 3 роки тому +1

    Hi Sir, can we install Jenkins on windows 32 bit?

    • @Mukeshotwani
      @Mukeshotwani  3 роки тому

      Hi Sushila process is same for 32 bit or 64 bit.

  • @Manoj-gr7kn
    @Manoj-gr7kn 4 роки тому

    can we download jenkins in java-13... i am getting this error - Jenkins requires Java versions [8, 11] but you are running with Java 13 from C:\Program Files\Java\jdk
    java.lang.UnsupportedClassVersionError: 57.0

    • @testautomation8431
      @testautomation8431 4 роки тому

      Hi , I was getting the smae issue. Try to uninstall Java-13 and install Java-8 ,set the environmental variables.

  • @mamidivasudev5988
    @mamidivasudev5988 2 роки тому

    Sir i got error as jenkins requirs java version 8,11

  • @HeyMani92
    @HeyMani92 5 років тому

    Hi Mukesh, I have forked your Github account and run a job in Jenkins but today u committed new msg to utility director right after that it won't work...what is the reason could you please reply me.
    Error: Trying to start Browser and Getting application ready
    [ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 3, Time elapsed: 3.599 s

    • @HeyMani92
      @HeyMani92 5 років тому +1

      i am using windows machine

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      What is the issue you are getting?

  • @kattakapilkumar
    @kattakapilkumar 4 роки тому +2

    helpfull.

  • @sanjaisexy
    @sanjaisexy 5 років тому

    Hi mukesh, this is excellent video but i am facing some issues while integrating my github with jenkins like:

    • @sanjaisexy
      @sanjaisexy 5 років тому +1

      Started by user Sanjai Singh
      Building in workspace C:\Users\Sanjay Singh\.jenkins\workspace\dummy
      using credential b6f2589a-dc2f-4f6c-9e23-a0737f2f7bb7
      Cloning the remote Git repository
      Cloning repository github.com/sanjaisingh/Framework.git
      > git.exe init C:\Users\Sanjay Singh\.jenkins\workspace\dummy # timeout=10
      ERROR: Error cloning remote repo 'origin'
      hudson.plugins.git.GitException: Could not init C:\Users\Sanjay Singh\.jenkins\workspace\dummy
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:813)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:605)
      at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:1152)
      at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1192)
      at hudson.scm.SCM.checkout(SCM.java:504)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1208)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
      at hudson.model.Run.execute(Run.java:1816)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Caused by: hudson.plugins.git.GitException: Error performing command: git.exe init C:\Users\Sanjay Singh\.jenkins\workspace\dummy
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2049)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2010)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2006)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1638)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$5.execute(CliGitAPIImpl.java:811)
      ... 12 more
      Caused by: java.io.IOException: Cannot run program "git.exe" (in directory "C:\Users\Sanjay Singh\.jenkins\workspace\dummy"): CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessBuilder.start(Unknown Source)
      at hudson.Proc$LocalProc.(Proc.java:249)
      at hudson.Proc$LocalProc.(Proc.java:218)
      at hudson.Launcher$LocalLauncher.launch(Launcher.java:936)
      at hudson.Launcher$ProcStarter.start(Launcher.java:455)
      at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:2038)
      ... 16 more
      Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
      at java.lang.ProcessImpl.create(Native Method)
      at java.lang.ProcessImpl.(Unknown Source)
      at java.lang.ProcessImpl.start(Unknown Source)
      ... 22 more
      ERROR: Error cloning remote repo 'origin'
      Finished: FAILURE
      please help me out this issues

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hello Sanjai as per log I can see that you do not have git.exe which is causing the failure.
      Download and Install Git in local system > Set the git path in Jenkins> Run the same job again.
      Note- You are one step close to the final result.
      Link to download GIT git-scm.com/downloads

  • @DucNguyen-xn5bd
    @DucNguyen-xn5bd 5 років тому +1

    Hi MuKesh, I got issue when I input repository URl: Failed to connect to repository : Error performing command: git.exe ls-remote -h github.com/duc123/abc-automation.git HEAD .Can you help me to resolve this error?

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Duc it seems some jenkins version incompatibility.. You can upgrade or downgrade your jenkins.

  • @tarikchaouki4048
    @tarikchaouki4048 4 роки тому

    hi mukesh thanks for videos alot you are such a good teacher , but i got one issue with jenkins , i couldnt run my test it gave me warning
    [WARNING] Error injecting: org.apache.maven.plugin.surefire.SurefirePlugin
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test (default-test) on project selenium: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test failed: Unable to load the mojo 'test' in the plugin 'org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4'. A required class is missing: org/apache/maven/plugin/surefire/SurefireReportParameters
    and thank you Sir

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Tarik, can you please share the pom.xml file or complete project.

    • @tarikchaouki4048
      @tarikchaouki4048 4 роки тому

      @@Mukeshotwani hi mukesh how are you doing my friend thanks alot for you reply so my pom.xml is :

      4.0.0
      org.training
      selenium
      0.0.1-SNAPSHOT
      jar

      org.seleniumhq.selenium
      selenium-java
      3.141.59

      org.seleniumhq.selenium
      selenium-server
      3.141.59
      org.testng
      testng
      7.1.0
      compile

      org.apache.poi
      poi
      4.1.2


      org.apache.poi
      poi-ooxml
      4.1.2

      log4j
      log4j
      1.2.17
      commons-io
      commons-io
      2.6
      com.aventstack
      extentreports
      4.0.9

      io.github.bonigarcia
      webdrivermanager
      4.0.0








      org.apache.maven.plugins
      maven-compiler-plugin
      3.8.1

      1.8
      1.8



      org.apache.maven.plugins
      maven-release-plugin
      3.0.0-M1



      org.codehaus.mojo
      exec-maven-plugin
      1.6.0


      org.apache.maven.plugins
      maven-resources-plugin
      3.1.0


      org.apache.maven.plugins
      maven-surefire-plugin
      3.0.0-M4


      testng.xml

    • @tarikchaouki4048
      @tarikchaouki4048 4 роки тому +1

      @@Mukeshotwani hi brother mukesh if you could solve it i got stuck my brother thank you so much

    • @tarikchaouki4048
      @tarikchaouki4048 4 роки тому +1

      @@Mukeshotwani hi Mukesh how are you brother.

    • @Mukeshotwani
      @Mukeshotwani  4 роки тому

      Hi Tarik pom.xml is having many not used plug-in and dependencies which is causing the issue.. please refer my hybrid framework series for this.

  • @ravinaidu4035
    @ravinaidu4035 5 років тому

    Any one in group help me. Regarding to open flipkart then you will find an page how to close that page

    • @ravinaidu4035
      @ravinaidu4035 5 років тому +1

      I mean details page how to close that

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Using Escape key or by clicking close button

    • @ravinaidu4035
      @ravinaidu4035 5 років тому

      Thank you mukesh

  • @durgasridevi7516
    @durgasridevi7516 5 років тому

    Hi Sir,
    add on git repository url in jenkins but my jenkins add on the git repository URL But Error msg is coming (Failed to connect repository:Error performing command: git.exe ls-remote -h github.com/xxxxxxxxx/FrameWork.git HEAD)so that solutions to all.

    • @Mukeshotwani
      @Mukeshotwani  5 років тому

      Hi Sridevi then it is credentials issue

    • @appansingharoy491
      @appansingharoy491 5 років тому +1

      Hi Sridevi...I faced the same issue and found a solution for the same.
      First install the git and then you need to set the path to your git executable in Manage Jenkins -> Global Tool Configuration -> Git -> Git Installations -> Path to Git executable (This should be the path of your git.exe file). Plz try after make these changes. It worked for me.

  • @eamonmac2751
    @eamonmac2751 4 роки тому

    In mac, where do i find the JAVA_HOME path?