2023-03-29 01:47:46 +02:00
|
|
|
node {
|
2023-04-05 01:34:34 +02:00
|
|
|
checkout scm
|
|
|
|
|
2023-05-13 01:10:40 +02:00
|
|
|
def local_image = docker.build("s452639-image")
|
2023-04-05 01:34:34 +02:00
|
|
|
|
|
|
|
local_image.inside {
|
|
|
|
stage('Build') {
|
2023-03-29 01:47:46 +02:00
|
|
|
checkout([$class: 'GitSCM', branches: [[name: 'ztm']], extensions: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452639/ium_452639']]])
|
2023-04-05 01:34:34 +02:00
|
|
|
|
2023-04-05 01:48:32 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true,
|
2023-04-05 01:34:34 +02:00
|
|
|
projectName: 's452639-create-dataset',
|
2023-04-05 01:35:59 +02:00
|
|
|
selector: buildParameter('BUILD_SELECTOR'),
|
2023-04-05 01:56:53 +02:00
|
|
|
flatten: true,
|
2023-04-05 01:35:59 +02:00
|
|
|
target: 'src/'
|
2023-04-05 01:34:34 +02:00
|
|
|
|
2023-04-05 01:44:34 +02:00
|
|
|
sh 'echo xd1; ls -l'
|
|
|
|
sh 'echo xd2; cd src; ls -l'
|
2023-04-05 01:34:34 +02:00
|
|
|
sh 'cd src; ./stats.py > stats.txt'
|
2023-04-05 01:48:32 +02:00
|
|
|
archiveArtifacts artifacts: 'src/stats.txt', followSymlinks: false
|
2023-04-05 01:34:34 +02:00
|
|
|
}
|
|
|
|
}
|
2023-03-29 01:47:46 +02:00
|
|
|
}
|
|
|
|
|