jenkinsci / dependency-track-plugin

Main repository for the official Dependency-Track Jenkins plugin
https://dependencytrack.org/
Apache License 2.0
44 stars 27 forks source link

Error was: Input length = 1 #157

Closed eldoranstars closed 1 year ago

eldoranstars commented 1 year ago

Describe the bug

From jenkins stage:

        stage('Dtrack') {
            steps {
                dependencyTrackPublisher artifact: "${APP_DIR}/${BOM_FILE}", 
                failedTotalCritical: 1, 
                failedTotalHigh: 1, 
                projectName: OCP_APP_NAME,
                projectVersion: "${params.APP_BRANCH}",
                synchronous: true
            }
        }

We get an error: [DependencyTrack] An error occurred processing artifact "/opt/jenkins/workspace/NDR_DTRACK/dtrack-dotnet6/dep-track/bom.xml". Error was: Input length = 1

Environment

Expected behavior

Expect to upload bom file without errors.

eldoranstars commented 1 year ago

no errors appear when i upload same bom file by curl https://docs.dependencytrack.org/usage/cicd/

sephiroth-j commented 1 year ago

Please see #138