Update JenkinsFile
This commit is contained in:
parent
0c8df1b6dc
commit
19e1a43996
20
JenkinsFile
20
JenkinsFile
@ -1,19 +1,23 @@
|
||||
pipeline {
|
||||
agent any
|
||||
stages {
|
||||
stage('Restore Dependencies') {
|
||||
steps {
|
||||
echo 'Restoring dependencies...'
|
||||
sh 'dotnet restore'
|
||||
}
|
||||
}
|
||||
stage('Build') {
|
||||
steps {
|
||||
echo 'Building...'
|
||||
echo 'Building the project...'
|
||||
sh 'dotnet build --configuration Release'
|
||||
}
|
||||
}
|
||||
stage('Test') {
|
||||
|
||||
stage('Publish') {
|
||||
steps {
|
||||
echo 'Testing...'
|
||||
}
|
||||
}
|
||||
stage('Deploy') {
|
||||
steps {
|
||||
echo 'Deploying...'
|
||||
echo 'Publishing the project...'
|
||||
sh 'dotnet publish --configuration Release --output ./publish'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user