You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
danger executions fail, after upgrate bitbucket server to version 8.9.0
What did you do?
We are running whitout any issue in our jenkins server with bitbucket server version 7. After the upgrade of the bitbucket server to version 8.9, the danger stage in ours pipelines stop working
ℹ we run this command DEBUG=* danger-swift ci --cwd ../
What did you expect to happen?
We are expecting that the command execution happen successfully and comment the PR associated
ℹ Please replace this with what you expected to happen.
Running your Dangerfile without it crashing.
What happened instead?
The execution fail with a error parse the bitbucket server informations of the PR
ℹ The error returning is this:
Decoding the DSL into Swift types
ERROR: Failed to parse JSON: keyNotFound(CodingKeys(stringValue: "tasks", intValue: nil), Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "danger", intValue: nil), CodingKeys(stringValue: "bitbucket_server", intValue: nil), CodingKeys(stringValue: "comments", intValue: nil), _JSONKey(stringValue: "Index 6", intValue: 6), CodingKeys(stringValue: "comment", intValue: nil), CodingKeys(stringValue: "comments", intValue: nil), _JSONKey(stringValue: "Index 0", intValue: 0)], debugDescription: "No value associated with key CodingKeys(stringValue: \"tasks\", intValue: nil) (\"tasks\").", underlyingError: nil))
Are you running the latest version of Danger?
Danger Swift runner (v3.17.1)
What is your Dangerfile?
importDangerimportDangerSwiftCoverage//package: https://github.com/f-meloni/danger-swift-coverage.gitimportDangerXCodeSummary//package: https://github.com/f-meloni/danger-swift-xcodesummary.gitletdanger=Danger()leteditedFiles=danger.git.modifiedFiles + danger.git.createdFilesletswiftFiles=editedFiles.filter{ $0.fileType == .swift}letswiftFilesForLint=editedFiles.filter{ $0.contains("iOSUIComponents/Classes/")}ifeditedFiles.count - danger.git.deletedFiles.count > 300{warn("Big PR, try to keep changes smaller if you can")}letswiftFilesWithCopyright=danger.git.createdFiles.filter{
$0.fileType == .swift
&& danger.utils.readFile($0).contains("// Created by")}if !swiftFilesWithCopyright.isEmpty{letfiles=swiftFilesWithCopyright.joined(separator: ", ")warn("In Danger we don't include copyright headers, found them in: \(files)")}funcfilesWithUnauthorizedAbbreviations(files: [File]){letunAuthorizedAbbreviations=["VM.swift","VS.swift","VD.swift","VC.swift"]letdetectedFiles=files.filter{unAuthorizedAbbreviations.contains(where: $0.name.contains)}forfileindetectedFiles{fail("Unauthorized Abbreviation in \(file)")}}filesWithUnauthorizedAbbreviations(files: swiftFiles)lethasNotDescription=danger.bitbucketServer.pullRequest.description ?? ""ifhasNotDescription.isEmpty{message("Please, provide a PR description.")}SwiftLint.lint(.files(swiftFilesForLint),configFile: ".swiftlint.yml",swiftlintPath: "./Demo/Pods/SwiftLint/swiftlint")Coverage.xcodeBuildCoverage(.derivedDataFolder("./DerivedData"),minimumCoverage: 80)
The text was updated successfully, but these errors were encountered:
jfernand21
changed the title
after upgrate bitbucket server to version 8.9.0, keyNotFound 'tasks'
after upgrade bitbucket server to version 8.9.0, keyNotFound 'tasks'
Sep 20, 2023
Report
danger executions fail, after upgrate bitbucket server to version 8.9.0
What did you do?
We are running whitout any issue in our jenkins server with bitbucket server version 7. After the upgrade of the bitbucket server to version 8.9, the danger stage in ours pipelines stop working
ℹ we run this command
DEBUG=* danger-swift ci --cwd ../
What did you expect to happen?
We are expecting that the command execution happen successfully and comment the PR associated
ℹ Please replace this with what you expected to happen.
Running your Dangerfile without it crashing.
What happened instead?
The execution fail with a error parse the bitbucket server informations of the PR
ℹ The error returning is this:
Your Environment
Jenkins 2.289.3
Danger Swift runner (v3.17.1)
The text was updated successfully, but these errors were encountered: