s
This commit is contained in:
parent
139ef69ca8
commit
291bd0c151
46
Jenkinsfile
vendored
46
Jenkinsfile
vendored
@ -44,41 +44,37 @@ pipeline {
|
||||
steps {
|
||||
script {
|
||||
try {
|
||||
//withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
// "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
//sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
sh '''
|
||||
#!/bin/bash
|
||||
pip install kaggle
|
||||
|
||||
git clone https://git.wmi.amu.edu.pl/s487187/ium_487187.git
|
||||
// withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
// "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
// sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
||||
// sh '''
|
||||
// #!/bin/bash
|
||||
// pip install kaggle
|
||||
|
||||
echo "Processed Data" > output.txt
|
||||
'''
|
||||
// git clone https://git.wmi.amu.edu.pl/s487187/ium_487187.git
|
||||
|
||||
// echo "Processed Data" > output.txt
|
||||
// '''
|
||||
// sh "head -n ${params.CUTOFF} data.csv"
|
||||
// }
|
||||
sh '''
|
||||
#!/bin/bash
|
||||
pip install kaggle
|
||||
|
||||
git clone https://git.wmi.amu.edu.pl/s487187/ium_487187.git
|
||||
|
||||
echo "Processed Data" > output.txt
|
||||
'''
|
||||
sh "head -n ${params.CUTOFF} data.csv"
|
||||
}
|
||||
} catch (err) {
|
||||
error "Failed to build: ${err.message}"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
stage('Clone Git Repository') {
|
||||
when { expression { params.KAGGLE_USERNAME && params.KAGGLE_KEY } }
|
||||
steps {
|
||||
script {
|
||||
try {
|
||||
git 'https://git.wmi.amu.edu.pl/s487187/ium_487187.git'
|
||||
} catch (err) {
|
||||
error "Failed to clone repository: ${err.message}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
stage('End') {
|
||||
when { expression { params.KAGGLE_USERNAME && params.KAGGLE_KEY } }
|
||||
// when { expression { params.KAGGLE_USERNAME && params.KAGGLE_KEY } }
|
||||
steps {
|
||||
echo 'Program ended!'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user