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
coverallsService := sys.env.get("CI").map { _ =>
new CIService {
val name = "circleci"
val jobId = sys.env.get("CIRCLE_BUILD_NUM")
val pullRequest = sys.env.get("CI_PULL_REQUEST").flatMap(_.split("/").lastOption)
val currentBranch = sys.env.get("CIRCLE_BRANCH")
}
}
This seems to be a workaround for now:
coverallsService := sys.env.get("CI").map { _ =>
new CIService {
val name = "circleci"
val jobId = sys.env.get("CIRCLE_BUILD_NUM")
val pullRequest = sys.env.get("CI_PULL_REQUEST").flatMap(_.split("/").lastOption)
val currentBranch = sys.env.get("CIRCLE_BRANCH")
override def coverallsAuth(userRepoToken: Option[String]): Option[CoverallsAuth] =
userRepoToken match {
case Some(token) => Some(CIServiceToken(token))
case None => super.coverallsAuth(userRepoToken)
}
}
}
I would love to contribute a fix but I don't understand the reasoning behind the different types of that ADT - maybe @ruippeixotog could advise?
Thanks again to everyone who built the plugin
The text was updated successfully, but these errors were encountered:
Thanks for this plugin - it's been working a great for my team until recently...
Upgraded to the latest and greatest, which I was using to upload coverage from a CircleCI pipeline - and it started failing with this error:
(side note: didn't notice for a while, because the SBT build ends up succeeding 🤔 )
Looks like #274 was the culprit, the code no longer populates
service_name
if your coverallsAuth is a CoverallsRepoToken:292581b#diff-27c4f1e540de6ed41915777359d6f779f9dc76eae56a77517dc46534512e4310
My configuration was:
This seems to be a workaround for now:
I would love to contribute a fix but I don't understand the reasoning behind the different types of that ADT - maybe @ruippeixotog could advise?
Thanks again to everyone who built the plugin
The text was updated successfully, but these errors were encountered: