Automating .NET Core Deployment to IIS with Jenkins | CI/CD Pipeline Setup

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

КОМЕНТАРІ • 26

  • @vladeb1104
    @vladeb1104 Місяць тому +2

    keep posting pal - its so hard to find a valuable jenkins related channel and yours is just great

  • @po6577
    @po6577 5 місяців тому +1

    it really helps a lot. we only have few use case on windows so but take a lot of time to find these kind of resource!

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  5 місяців тому

      Hi there!! We are happy to know that the resources were helpful for your Windows use cases! If you ever need more assistance or have any other questions, feel free to let us know.

  • @sanjaydutta5831
    @sanjaydutta5831 5 місяців тому +2

    Thank you so much sir, was really looking for some video with Jenkins and IIS .
    Found an amazing channel❤

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  5 місяців тому

      Hi Sanjay,
      You're very welcome! I'm glad I could assist you. If you have any further questions or need more guidance, feel free to reach out. Also, I'm thrilled to hear that you found an excellent channel for Jenkins and IIS content. Happy learning!
      Best regards,
      Takneeki Gyanguru Team

    • @sanjaydutta5831
      @sanjaydutta5831 5 місяців тому

      @@TakneekiGyanGuru-zd9sl sir if it is possible for you can you pls arrange the videos related to Jenkins in a playlist.
      would be really grateful!

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  5 місяців тому

      Hi Sanjay, Thank you for the suggestion! I appreciate your input. I'll definitely work on putting together a playlist dedicated to Jenkins tutorials. Stay tuned for updates, and I hope you find the playlist helpful once it's ready!

    • @sanjaydutta5831
      @sanjaydutta5831 5 місяців тому

      @@TakneekiGyanGuru-zd9sl thank you so much for the kind effort

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  5 місяців тому

      Hi Sanjay, I'm excited to announce that I've just published a new playlist focused on Jenkins tutorials! 🚀 Explore topics such as CI/CD pipelines, deployment strategies, and automation with Jenkins. Dive into the playlist here: Jenkins Tutorial Playlist(ua-cam.com/play/PL4DfdO0SRIa9Eta0W-GgZVj-aVOtZZ520.html) and level up your DevOps skills! Don't forget to like, comment, and subscribe for more updates!

  • @PrachiSawant-x1z
    @PrachiSawant-x1z 5 місяців тому +1

    Can you pls share script github path , its not clearly visible

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  5 місяців тому

      Yes, you can find the GitHub repository at this link: github.com/takneekigyanguru/dotnetcore-sms.git

  • @DileepK-li1ig
    @DileepK-li1ig 4 місяці тому

    How to deploy dotnet project into remote windows azure vm using azure cli in jenkins pipeline

    • @DileepK-li1ig
      @DileepK-li1ig 4 місяці тому

      Please reply

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  4 місяці тому

      Hi Dileep, Sorry for the delayed response. It seems like this is a common problem, so I've decided to create a detailed video on this topic to help you and others who might have similar queries.
      I'll be publishing a comprehensive video soon that will walk you through the entire process of deploying a project from Jenkins to an Azure VM using Azure CLI

    • @DileepK-li1ig
      @DileepK-li1ig 4 місяці тому

      @@TakneekiGyanGuru-zd9sl
      Could you please provide the solution.

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  4 місяці тому +1

      Hi Dileep, I apologize for the delay in responding. I've been away from UA-cam for a while, which caused the delay in getting back to you and creating the video on time. However, I'm back now and actively working on your request. Rest assured, I will be publishing a video very soon based on your request. Thank you for your patience!

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  4 місяці тому +1

      Hi Dileep, I've uploaded the video on deploying a .NET Core web app to Azure VM using Jenkins and Azure CLI. Check it out here: ua-cam.com/video/gWjG_LKf3sk/v-deo.html

  • @nikitanand4652
    @nikitanand4652 6 місяців тому

    culd u please tell me y u gave the password for which purpose

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  6 місяців тому +1

      Hi Nikita,
      Thank you for bringing up this issue. I appreciate your attention to detail. I trust you're referring to the code snippet below, where you seem to have some uncertainty about why this credential is employed in this context:
      stage('Deploy') {
      steps {
      script {
      withCredentials([usernamePassword(credentialsId: 'coreuser', passwordVariable: 'CREDENTIAL_PASSWORD', usernameVariable: 'CREDENTIAL_USERNAME')]) {
      powershell '''
      $credentials = New-Object System.Management.Automation.PSCredential($env:CREDENTIAL_USERNAME, (ConvertTo-SecureString $env:CREDENTIAL_PASSWORD -AsPlainText -Force))
      New-PSDrive -Name X -PSProvider FileSystem -Root "\\\\LAPTOP-DFRQ3ILG\\coreapp" -Persist -Credential $credentials
      Copy-Item -Path '.\\publish\\*' -Destination 'X:\' -Force
      Remove-PSDrive -Name X
      '''
      }
      }
      }
      Let me clarify the process:
      We are operating with two machines here - one for Jenkins and another for deploying the website where IIS is configured. In the second machine (LAPTOP-DFRQ3ILG), we've set up IIS and created a website named "coreapp," along with a virtual directory also named "coreapp." We're deploying the website from Jenkins to this virtual directory within the LAPTOP-DFRQ3ILG machine.
      Since the Jenkins machine doesn't directly access the coreapp folder (as it's on a different machine), we've established user credentials named "takneekigyanguru" that have the necessary access permissions on the LAPTOP-DFRQ3ILG machine. These credentials are integrated with Jenkins so that it can deploy the files to the coreapp folder.
      This credential section can be bypassed if:
      1. Jenkins and the IIS webserver are on the same machine, or
      2. You utilize a Jenkins node/slave on the second server where IIS is configured.
      I've recently published another video demonstrating the process of creating a Windows EC2 instance using Terraform, configuring IIS, creating an app pool and website using Ansible, and then deploying a .NET Core app using Ansible. Feel free to check it out if it's helpful: ua-cam.com/video/mN2_oYTDXc4/v-deo.html
      Additionally, I'm currently working on another video where the deployment section will be automated through Ansible. Stay tuned for updates!
      Please let me know if this clarifies your doubts. If you need further explanation, I'm happy to provide more details.

  • @kvs7720
    @kvs7720 5 місяців тому

    can you share the github repo

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  5 місяців тому

      Hi there! Of course! You can find the GitHub repository for this project at github.com/takneekigyanguru/dotnetcore-sms.git. Feel free to explore the code and let me know if you have any questions or need further assistance.