docker
This commit is contained in:
parent
208799af85
commit
650401ca1d
9
Dockerfile
Normal file
9
Dockerfile
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
# Instalujemy niezbędne zależności. Zwróć uwagę na flagę "-y" (assume yes)
|
||||||
|
RUN apt update && apt install -y python3 python3-pip
|
||||||
|
|
||||||
|
# Stwórzmy w kontenerze (jeśli nie istnieje) katalog /app i przejdźmy do niego (wszystkie kolejne polecenia RUN, CMD, ENTRYPOINT, COPY i ADD będą w nim wykonywane)
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
# 3ffd24d6-993e-4ac8-abd4-48a784aa133d
|
27
create-dataset.Jenkinsfile
Normal file
27
create-dataset.Jenkinsfile
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
// Get some code from a GitHub repository
|
||||||
|
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
|
||||||
|
|
||||||
|
sh 'ls'
|
||||||
|
sh 'ls ..'
|
||||||
|
sh 'python3 create_dataset.py'
|
||||||
|
|
||||||
|
// To run Maven on a Windows agent, use
|
||||||
|
// bat "mvn -Dmaven.test.failure.ignore=true clean package"
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
// If Maven was able to run the tests, even if some of the test
|
||||||
|
// failed, record the test results and archive the jar file.
|
||||||
|
success {
|
||||||
|
archiveArtifacts 'in_alphabet,out_alphabet,preprocessed.tsv'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
dataset-stats.Jenkinsfile
Normal file
19
dataset-stats.Jenkinsfile
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
pipeline {
|
||||||
|
agent any
|
||||||
|
|
||||||
|
stages {
|
||||||
|
stage('Build') {
|
||||||
|
steps {
|
||||||
|
git 'https://git.wmi.amu.edu.pl/s434749/ium_434749.git'
|
||||||
|
copyArtifacts fingerprintArtifacts: true, projectName: 's434749-create-dataset', selector: lastSuccessful()
|
||||||
|
sh 'python3 dataset_stats.py'
|
||||||
|
}
|
||||||
|
|
||||||
|
post {
|
||||||
|
success {
|
||||||
|
archiveArtifacts 'stats.txt'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user