This commit is contained in:
Alagris 2021-04-11 19:37:47 +02:00
parent 208799af85
commit 650401ca1d
3 changed files with 55 additions and 0 deletions

9
Dockerfile Normal file
View 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

View 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
View 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'
}
}
}
}
}