This commit is contained in:
Norbert Walkowiak 2023-04-15 10:45:22 +02:00
parent 43b7355ae8
commit 5d23d6d8cc

6
Jenkinsfile vendored
View File

@ -17,7 +17,6 @@ pipeline {
stage('Preparation') { stage('Preparation') {
steps { steps {
script { script {
// Ustawianie danych uwierzytelniających KAGGLE
withCredentials([string(credentialsId: '', variable: 'KAGGLE_USERNAME'), string(credentialsId: '', variable: 'KAGGLE_KEY')]) { withCredentials([string(credentialsId: '', variable: 'KAGGLE_USERNAME'), string(credentialsId: '', variable: 'KAGGLE_KEY')]) {
sh 'export KAGGLE_USERNAME=$KAGGLE_USERNAME && export KAGGLE_KEY=$KAGGLE_KEY' sh 'export KAGGLE_USERNAME=$KAGGLE_USERNAME && export KAGGLE_KEY=$KAGGLE_KEY'
} }
@ -26,20 +25,17 @@ pipeline {
} }
stage('checkout') { stage('checkout') {
steps { steps {
//Klonowanie git branch: 'master', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git'
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'git-creds', url: 'https://git.wmi.amu.edu.pl/s487175/ium_z487175.git']]])
} }
} }
stage('script') { stage('script') {
steps { steps {
//skrypt
sh './s487175-create-dataset-scriptsh.py > output.txt' sh './s487175-create-dataset-scriptsh.py > output.txt'
} }
} }
} }
post { post {
always { always {
//archiveArtifacts
archiveArtifacts artifacts: 'output.txt', onlyIfSuccessful: true archiveArtifacts artifacts: 'output.txt', onlyIfSuccessful: true
} }
} }