Skip Scala_2_12 job on releases (#9954)

This currently breaks older releases because they require a different
Scala 2.12 version. It also adds zero value for a release that
defaults to Scala 2.12 and it adds basically no value for a release
that defaults to Scala 2.13 (see comment for details).

changelog_begin
changelog_end
This commit is contained in:
Moritz Kiefer 2021-06-10 14:02:43 +02:00 committed by GitHub
parent 5e1ddfbd5e
commit 42030b25ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,13 @@ jobs:
- template: report-end.yml
- job: Linux_scala_2_12
# We disable this for release builds. The actual release happens via the regular Linux builds
# and running tests on two scala versions doesnt add any value if the tests already
# passed on the respective PRs that added the changes. The only difference here
# is the release version which should not affect things differently depending on the
# Scala version.
condition: and(succeeded(),
eq(dependencies.check_for_release.outputs['out.is_release'], 'false'))
dependsOn:
- da_ghc_lib
- check_for_release
@ -111,9 +118,6 @@ jobs:
release_sha: $[ dependencies.check_for_release.outputs['out.release_sha'] ]
release_tag: $[ coalesce(dependencies.check_for_release.outputs['out.release_tag'], '0.0.0') ]
trigger_sha: $[ dependencies.check_for_release.outputs['out.trigger_sha'] ]
# For old release builds, this job is redundant since the default is already 2.12.
# However, since bugfix releases are not very frequent we opt for the simple solution
# of simply running this build either way.
is_release: $[ eq(dependencies.check_for_release.outputs['out.is_release'], 'true') ]
timeoutInMinutes: 360
pool: