DevOps | Saurabh | 2nd Nov

Discussion in 'Cloud Computing' started by Kartikeya Sinha_1, Nov 2, 2019.

  1. Kartikeya Sinha_1

    Kartikeya Sinha_1 Active Member

    Joined:
    Mar 28, 2019
    Messages:
    32
    Likes Received:
    3
    Please use this thread for all the conversations
     
    #1
  2. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8
    Session -1 notes
     

    Attached Files:

    #2
  3. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8
    Git sessions
     

    Attached Files:

    #3
  4. Balaji Bharath Mandava

    Balaji Bharath Mandava Active Member
    Alumni

    Joined:
    Mar 30, 2016
    Messages:
    19
    Likes Received:
    1
    @Saurabh_218

    Hi Saurabh,

    Please advise to provide more details on the below questions.

    1. git branching strategy
    2. Real time issues faced during integrating git with jenkins
    3. How to use git rebase in the real time.
    4. How to resolve the conflicts in git.

    Regards,
    Balaji Mandava
     
    #4
  5. Nitin Somani

    Nitin Somani New Member

    Joined:
    Oct 24, 2019
    Messages:
    1
    Likes Received:
    0
    Hi Saurabh,

    Got stuck there what to do?
     

    Attached Files:

    #5
  6. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8
    Session Jenkins
     

    Attached Files:

    #6
  7. Uma Shankari M

    Joined:
    Aug 16, 2019
    Messages:
    3
    Likes Received:
    0
    Query-
    1)When I am trying to do merge master to Independence in Git bash I am getting an error.
    $ git merge Independence
    *** Please tell me who you are.
    Run
    git config --global user.email "you@example.com"
    git config --global user.name "Your Name"
    to set your account's default identity.
    Omit --global to set the identity only in this repository.
    fatal: unable to auto-detect email address (got 'Uma Shankari@LAPTOP-J8J0OTIC.(none)')

    Please advise.

    2)When I am trying to do merge master to Independence in ubuntu I am getting an error-
    root@ip-172-31-6-140:/home/ubuntu/test1/Session2--Devops# git push origin masterUsername for 'https://github.com': ushankari
    Password for 'https://ushankari@github.com':
    To https://github.com/ushankari/Session2--Devops.git
    ! [rejected] master -> master (non-fast-forward)
    error: failed to push some refs to 'https://github.com/ushankari/Session2--Devops.git'
    hint: Updates were rejected because a pushed branch tip is behind its remote
    hint: counterpart. Check out this branch and integrate the remote changes
    hint: (e.g. 'git pull ...') before pushing again.
    hint: See the 'Note about fast-forwards' in 'git push --help' for details.

    Please advise as I am not able to Merge my branches.

    3)When I performed commit in ubuntu for Independence, and its not pulled, it should show as 2/0
    but i am not able to see. It shows as 0/0 only.

    Regards,
    Uma Shankari M
     
    #7
  8. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8
    Automation Testing
     

    Attached Files:

    #8
  9. Uma Shankari M

    Joined:
    Aug 16, 2019
    Messages:
    3
    Likes Received:
    0
    Hi Saurabh,

    When I tried to do compile.
    For Jenkins-Java - clean install.
    Build failed. Error
    'mvn' is not recognized as an internal or external command,
    operable program or batch file.
    Build step 'Invoke top-level Maven targets' marked build as failure
    Finished: FAILURE
    But Maven is installed in Ubuntu.
    When I run "cd /var/lib/jenkins/workspace" - In ubuntu
    This is the error I get as shown below.
    upload_2019-11-15_23-1-56.png

    Please advice.
    Regards,
    Uma Shankari
     
    #9
  10. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8

    ********************************************************************************************************************
    Hi Uma,

    You need to install maven on the ubuntu machine
    Command to install maven

    apt-get install maven
     
    #10
  11. Balaji Bharath Mandava

    Balaji Bharath Mandava Active Member
    Alumni

    Joined:
    Mar 30, 2016
    Messages:
    19
    Likes Received:
    1
    Hello Saurabh,

    Please advise to share the Devops & AWS sample resume for reference.

    Regards,
    Balaji Mandava
     
    #11
  12. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8
    Ansible Session
     

    Attached Files:

    #12
  13. Uma Shankari M

    Joined:
    Aug 16, 2019
    Messages:
    3
    Likes Received:
    0
    Hi Saurabh,

    This is the error I received when I was performing the Lab session.
    upload_2019-11-17_13-24-18.png

    Please advise.

    Regards,
    Uma Shankari M
     

    Attached Files:

    #13
  14. Saurabh_218

    Saurabh_218 Customer
    Customer

    Joined:
    Jul 5, 2019
    Messages:
    35
    Likes Received:
    8
    Docker Session
     

    Attached Files:

    #14
  15. Aditya Sharma_9

    Joined:
    Sep 12, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Saurabh,
    I was able to successfully configure the Teamcity and able to start teamcity-server.sh file.
    but still i am unable to connect to Teamcity Server. It is displaying following message in google chrome.

    I entered my local IP and team city port number in format x.x.x.x:8111 in chrome and firefox but still getting the same error.

    Please Note : I am doing this on my local operating system i.e. Ubuntu 19.10 . I am not using virtual lab provided by simplilearn.

    Can please help me on resolving this issue.
     

    Attached Files:

    #15
  16. Balaji Bharath Mandava

    Balaji Bharath Mandava Active Member
    Alumni

    Joined:
    Mar 30, 2016
    Messages:
    19
    Likes Received:
    1
    @Saurabh_218
    Hi Saurabh,

    My webhook integration with jenkins is not working.

    Please advise to help on fixing the issue.

    Regards,
    Balaji Mandava
     

    Attached Files:

    #16
  17. Balaji Bharath Mandava

    Balaji Bharath Mandava Active Member
    Alumni

    Joined:
    Mar 30, 2016
    Messages:
    19
    Likes Received:
    1
    Hi Nitin,

    Please access the below URL in ubuntu VM and check whether the jenkins is up and running or not.

    http://localhost:8080/

    Let me know in case of any queries.

    Regards,
    Balaji Mandava
     
    #17
  18. Balaji Bharath Mandava

    Balaji Bharath Mandava Active Member
    Alumni

    Joined:
    Mar 30, 2016
    Messages:
    19
    Likes Received:
    1
    @Saurabh_218

    Please advise to check with the team and confirm back.

    I am looking to apply for the jobs so do needful.

    Regards,
    Balaji
     
    #18
  19. Aditya Sharma_9

    Joined:
    Sep 12, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Saurabh,

    I successfully configured git and maven on jenkins. but when i am running the build and checking the console output it is showing following warning and my build is getting failed. Can you please help me to understand, why am i getting this?

    Console Output :

    [javamaven] $ /usr/share/maven/bin/mvn clean package
    WARNING: An illegal reflective access operation has occurred
    WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
    WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1
    WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
    WARNING: All illegal access operations will be denied in a future release
    [[1;34mINFO[m] Scanning for projects...
    [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
    [[1;34mINFO[m] [1;31mBUILD FAILURE[m
    [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
    [[1;34mINFO[m] Total time: 0.346 s
    [[1;34mINFO[m] Finished at: 2019-11-21T23:55:06+05:30
    [[1;34mINFO[m] [1m------------------------------------------------------------------------[m
    [[1;31mERROR[m] The goal you specified requires a project to execute but there is no POM in this directory (/var/lib/jenkins/workspace/javamaven). Please verify you invoked Maven from the correct directory. -> [1m[Help 1][m
    [[1;31mERROR[m]
    [[1;31mERROR[m] To see the full stack trace of the errors, re-run Maven with the [1m-e[m switch.
    [[1;31mERROR[m] Re-run Maven using the [1m-X[m switch to enable full debug logging.
    [[1;31mERROR[m]
    [[1;31mERROR[m] For more information about the errors and possible solutions, please read the following articles:
    [[1;31mERROR[m] [1m[Help 1][m http://cwiki.apache.org/confluence/display/MAVEN/MissingProjectException
    Build step 'Invoke top-level Maven targets' marked build as failure
    Finished: FAILURE
     
    #19
  20. Balaji Bharath Mandava

    Balaji Bharath Mandava Active Member
    Alumni

    Joined:
    Mar 30, 2016
    Messages:
    19
    Likes Received:
    1
    Hi Aditya,

    Please use the below command.

    clean install.

    I see the above error might be due to incorrect use of goals.

    Let me know the issue still exists or resolved.

    Regards,
    Balaji Mandava
     
    #20
  21. Aniesh

    Aniesh New Member

    Joined:
    Oct 24, 2019
    Messages:
    1
    Likes Received:
    0
    Hi Saurabh

    Please demonstrate a email notification demo for Jenkins. I had tried but showing some JAVA error.
     
    #21
  22. Keerthana Sivaprakasam

    Joined:
    Oct 24, 2019
    Messages:
    2
    Likes Received:
    0
    Hi guys,
    I am getting below error while adding webhook in my GitHub. Even I tried created/edited the file after adding the webhook, but still the same issue persists as attached. Please provide your suggestion to resolve this issue.

    Thank you!
     

    Attached Files:

    #22
  23. Keerthana Sivaprakasam

    Joined:
    Oct 24, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Anish,
    I have used the below URL, it works for me. Hope it helps for you as well!
    http://tanmaysarkar.com/email-configuration-with-jenkins/

    Thanks,
    Keerthana
     
    #23
  24. Asif Iqbal_1

    Asif Iqbal_1 Customer
    Customer

    Joined:
    Sep 19, 2019
    Messages:
    12
    Likes Received:
    1
    Hello Balaji,
    If you are trying to integrate Github repositories with a Jenkins server installed in simplilearn practice lab through webhooks, it may not work. The simplilearn practice labs are not accessible from a public location such as github. Even you will not be able to connect/ping these machines from your local PC. Usually, you need a public IP to connect to through webhooks. If you have an AWS a/c try having an EC2 instance over there and install Jenkins in that. Post that you can configure the webhook with the public IP of the EC2 machine and try the integration. It should work.

    Thanks
    Asif
     
    #24

Share This Page