sd
This commit is contained in:
parent
598c084c0c
commit
4cd4573f15
25
Jenkinsfile
vendored
25
Jenkinsfile
vendored
@ -40,31 +40,18 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
//when { expression { params.KAGGLE_USERNAME && params.KAGGLE_KEY } }
|
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
try {
|
try {
|
||||||
// withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
sh 'rm -rf ium_487187'
|
||||||
// "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
|
|
||||||
|
|
||||||
// echo "Processed Data" > output.txt
|
|
||||||
// '''
|
|
||||||
// sh "head -n ${params.CUTOFF} data.csv"
|
|
||||||
// }
|
|
||||||
sh '''
|
sh '''
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
pip install kaggle
|
pip install kaggle
|
||||||
|
|
||||||
git clone https://git.wmi.amu.edu.pl/s487187/ium_487187.git
|
git clone https://git.wmi.amu.edu.pl/s487187/ium_487187.git
|
||||||
|
|
||||||
echo "Processed Data" > output.txt
|
echo "Processed Data" > output.txt
|
||||||
'''
|
'''
|
||||||
sh "head -n ${params.CUTOFF} data.csv"
|
sh "head -n ${params.CUTOFF} data.csv"
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
error "Failed to build: ${err.message}"
|
error "Failed to build: ${err.message}"
|
||||||
|
Loading…
Reference in New Issue
Block a user