Compare commits
32 Commits
master
...
test-jenki
Author | SHA1 | Date | |
---|---|---|---|
1e50bd15fa | |||
16721ed210 | |||
6e89872ddb | |||
8dc1c8c1d7 | |||
e666adf2b4 | |||
7b556ef953 | |||
5d3531b2d2 | |||
586f0acf7f | |||
5f0d2adb00 | |||
eeea4f86d1 | |||
df3312e788 | |||
fabf198f48 | |||
f87523cf34 | |||
67d519df5e | |||
89fa6939ea | |||
08e886610e | |||
eb25599c9f | |||
2ed9fa825e | |||
6df7f174ce | |||
1407e61997 | |||
023ae1ff6c | |||
647736d8f7 | |||
4e240b7506 | |||
6ce52af934 | |||
67e52719f2 | |||
04f56e5078 | |||
c9d927aeb9 | |||
2cb69eb3b5 | |||
800459a894 | |||
2c3dd7f0d2 | |||
356f0b2ea1 | |||
734368df68 |
47
Jenkinsfile
vendored
47
Jenkinsfile
vendored
@ -1,20 +1,47 @@
|
||||
//pipeline {
|
||||
// agent any
|
||||
// stages {
|
||||
// stage('Build image') {
|
||||
// steps {
|
||||
// echo "Building docker image"
|
||||
// script {
|
||||
// dir('SessionCompanion/SessionCompanion'){
|
||||
// def customImage = docker.build("session-companion:${env.BUILD_ID}")
|
||||
// //customImage.withRun('-p 5050:5050')
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// stage('Delete image') {
|
||||
// steps {
|
||||
// sh "docker rmi session-companion:${env.BUILD_ID}"
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
pipeline {
|
||||
agent any
|
||||
agent {
|
||||
docker {
|
||||
image 'kargor8/sess-comp-base:v2'
|
||||
}
|
||||
}
|
||||
environment {
|
||||
DOTNET_CLI_HOME = '/tmp/App'
|
||||
}
|
||||
stages {
|
||||
stage('Build image') {
|
||||
stage('Build app') {
|
||||
steps {
|
||||
echo "Building docker image"
|
||||
script {
|
||||
dir('SessionCompanion/SessionCompanion'){
|
||||
def customImage = docker.build("session-companion:${env.BUILD_ID}")
|
||||
//customImage.withRun('-p 5050:5050')
|
||||
dir('SessionCompanion') {
|
||||
sh "echo $USER"
|
||||
withEnv(["HOME=${env.WORKSPACE}"]){
|
||||
sh 'dotnet build'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
stage('Delete image') {
|
||||
steps {
|
||||
sh "docker rmi session-companion:${env.BUILD_ID}"
|
||||
stage('Clarify') {
|
||||
steps {
|
||||
sh "echo Dziala"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user