Closed ArkadiuszSkalski-TomTom closed 3 years ago
Could you provide a complete pipeline for generating the artifacts please? It will make it easier to fix
In my case the data was not generated, I can't share my data set. I will try to provide you a snippet by tomorrow. Cheers.
ok I actually managed to reproduce it with simple groovy:
pipeline {
agent {
label "linux"
}
stages {
stage('Generate') {
steps {
sh "mkdir -p generated_files"
generateFiles()
archiveArtifacts artifacts: 'generated_files/*.txt', followSymlinks: false
}
}
}
}
void generateFiles() {
int i = 0
def largeString = org.apache.commons.lang.RandomStringUtils.randomAlphanumeric(204800)
10000.times {
writeFile file: "generated_files/out${i++}.txt", text: largeString
}
}
Perfect thanks
This worked on my machine but it depends how quickly files are uploaded I think.
In the meantime I would suggest not trying to upload more than 1500 files at once, 500 concurrent requests and 1000 pending appears to be the limit.
Would doing multiple archive artifacts calls work maybe for different directories? or tar/zipping the folder?
Would doing multiple archive artifacts calls work maybe for different directories? or tar/zipping the folder?
It is a workaround for a Jenkinsfile owner. The Jenkins Maintainer can't enable the plugin as he has no knowledge about how many files are archived within pipelines.
I think the plugin should simply process files in batches to work around this limitation or fail the build at least as the artifacts are gone.
@ArkadiuszSkalski-TomTom I think https://github.com/jenkinsci/azure-artifact-manager-plugin/releases/tag/97.v074e1332e88d should work for you. I wasn't able to reproduce this though
thanks a ton. I'll test the plugin this week and let you know.
When I archive a large number of files some files are not archived.
Version report
Jenkins and plugins versions report:
Reproduction steps
execute archiveArtifacts artifacts: 'data_to_archive/*/.*', followSymlinks: false
Results
Expected result:
All files are archived.
Actual result:
Some files are missing (reported 3536 times - almost half of all files)