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

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Learn how to streamline your deployment process by automating the deployment of .NET Core applications to IIS using Jenkins! In this tutorial, we'll guide you through setting up a Jenkins pipeline to deploy your .NET Core app seamlessly. IIS configuration and website creation will be automated using tools like Ansible, Chef, or Puppet, ensuring efficiency and consistency. Check out our previous video for creating a .NET application and setting up a Jenkins build pipeline. Watch now!
    • Create .Net Core Web A...

Komentáře • 25

  • @sanjaydutta5831
    @sanjaydutta5831 Před 4 měsíci +2

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

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 4 měsíci

      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 Před 4 měsíci

      @@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  Před 4 měsíci

      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 Před 4 měsíci

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

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 4 měsíci

      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(czcams.com/play/PL4DfdO0SRIa9Eta0W-GgZVj-aVOtZZ520.html) and level up your DevOps skills! Don't forget to like, comment, and subscribe for more updates!

  • @po6577
    @po6577 Před 4 měsíci +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  Před 4 měsíci

      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.

  • @user-bc8fc2ie4l
    @user-bc8fc2ie4l Před 4 měsíci +1

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

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 4 měsíci

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

  • @DileepK-li1ig
    @DileepK-li1ig Před 2 měsíci

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

    • @DileepK-li1ig
      @DileepK-li1ig Před 2 měsíci

      Please reply

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 2 měsíci

      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 Před 2 měsíci

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

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 2 měsíci +1

      Hi Dileep, I apologize for the delay in responding. I've been away from CZcams 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  Před 2 měsíci +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: czcams.com/video/gWjG_LKf3sk/video.html

  • @nikitanand4652
    @nikitanand4652 Před 5 měsíci

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

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 5 měsíci +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: czcams.com/video/mN2_oYTDXc4/video.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 Před 4 měsíci

    can you share the github repo

    • @TakneekiGyanGuru-zd9sl
      @TakneekiGyanGuru-zd9sl  Před 4 měsíci

      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.