Compare commits

...

32 Commits

Author SHA1 Message Date
Karol Górzyński 1e50bd15fa Fixed typo 2020-12-10 16:52:50 +01:00
Karol Górzyński 16721ed210 Need to make sure it works 2020-12-10 16:51:00 +01:00
Karol Górzyński 6e89872ddb Add withEnv, fix typo 2020-12-10 16:43:44 +01:00
Karol Górzyński 8dc1c8c1d7 Add withEnv 2020-12-10 16:40:13 +01:00
Karol Górzyński e666adf2b4 Check username 2020-12-09 19:35:21 +01:00
Karol Górzyński 7b556ef953 Try different source image 2020-12-09 19:27:21 +01:00
Karol Górzyński 5d3531b2d2 Try to create dir needed 2020-12-09 19:22:40 +01:00
Karol Górzyński 586f0acf7f Try to fix casche problem, fix typo 2020-12-09 19:17:14 +01:00
Karol Górzyński 5f0d2adb00 Try to fix casche problem 2020-12-09 19:14:24 +01:00
Karol Górzyński eeea4f86d1 Add proper image this time 2020-12-09 19:09:22 +01:00
Karol Górzyński df3312e788 Try custom image 2020-12-09 19:06:43 +01:00
Karol Górzyński fabf198f48 Again with my image 2020-12-04 19:31:58 +01:00
Karol Górzyński f87523cf34 with node installing fix 2020-12-04 19:25:05 +01:00
Karol Górzyński 67d519df5e with node installing 2020-12-04 19:23:20 +01:00
Karol Górzyński 89fa6939ea no node 2020-12-04 19:20:24 +01:00
Karol Górzyński 08e886610e Test both images, different agents 2020-12-04 19:09:40 +01:00
Karol Górzyński eb25599c9f Test both images 2020-12-04 19:07:31 +01:00
Karol Górzyński 2ed9fa825e Test only node 2020-12-04 19:05:57 +01:00
Karol Górzyński 6df7f174ce Try idea with dockerhub add version 2020-12-04 18:57:55 +01:00
Karol Górzyński 1407e61997 Try idea with dockerhub fix bug 2020-12-04 18:56:37 +01:00
Karol Górzyński 023ae1ff6c Try idea with dockerhub 2020-12-04 18:55:59 +01:00
Karol Górzyński 647736d8f7 Test two docker images 2020-12-04 18:46:53 +01:00
Karol Górzyński 4e240b7506 Test double images 2020-12-04 18:04:15 +01:00
Karol Górzyński 6ce52af934 Add try with new image, only node:12 2020-12-04 17:56:48 +01:00
Karol Górzyński 67e52719f2 Add try with new image fix 2020-12-04 17:53:36 +01:00
Karol Górzyński 04f56e5078 Add try with new image 2020-12-04 17:49:35 +01:00
Karol Górzyński c9d927aeb9 Test envioment, check env 2020-12-04 14:41:54 +01:00
Karol Górzyński 2cb69eb3b5 Test envioment fix bug 2020-12-04 14:38:48 +01:00
Karol Górzyński 800459a894 test evlioment 2020-12-04 14:37:46 +01:00
Karol Górzyński 2c3dd7f0d2 Try to make it run dotnet 2020-12-03 17:30:56 +01:00
Karol Górzyński 356f0b2ea1 Test new config, fixed bugs 2020-12-03 17:28:14 +01:00
Karol Górzyński 734368df68 Test new config 2020-12-03 17:26:07 +01:00
1 changed files with 48 additions and 21 deletions

69
Jenkinsfile vendored
View File

@ -1,21 +1,48 @@
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
// 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 {
docker {
image 'kargor8/sess-comp-base:v2'
}
}
environment {
DOTNET_CLI_HOME = '/tmp/App'
}
stages {
stage('Build app') {
steps {
dir('SessionCompanion') {
sh "echo $USER"
withEnv(["HOME=${env.WORKSPACE}"]){
sh 'dotnet build'
}
}
}
}
stage('Clarify') {
steps {
sh "echo Dziala"
}
}
}
}