create a jenkins file for my dotnet project, it should checkout to master and build the…
- User
create a jenkins file for my dotnet project, it should checkout to master and build the project, path to my project is 'C:/Projects/JenkinsDemo/JenkinsDemo.sln'
Assistant
pipeline { agent any stages { stage('Checkout') { steps { git branch: 'master', url: 'https://github.com/your-username/your-project.git' } } stage('Build') { steps { bat "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe C:/Projects/JenkinsDemo/JenkinsDemo.sln /p:Configuration=Release" } } stage('Test') { steps { bat "C:/Projects/JenkinsDemo/run_tests.bat" } } stage('Deploy') { steps { bat "C:/Projects/JenkinsDemo/deploy.bat" } } } }