Skip to content

Publish SNAPSHOT builds to sonatype on pushes to develop#1093

Merged
fuzzybinary merged 1 commit into
developfrom
RUMM-2579-snapshot-builds
Oct 20, 2022
Merged

Publish SNAPSHOT builds to sonatype on pushes to develop#1093
fuzzybinary merged 1 commit into
developfrom
RUMM-2579-snapshot-builds

Conversation

@fuzzybinary

@fuzzybinary fuzzybinary commented Oct 18, 2022

Copy link
Copy Markdown
Member

What does this PR do?

Add 'SNAPSHOT' as a version tag, and default new versions to it. Change the build so that develop triggers all publish stages.

Motivation

The cross platform frameworks would like to work from SNAPSHOTS in order to speed up development.

Additional Notes

Anything else we should know when reviewing?

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

Comment thread .gitlab-ci.yml
tags: [ "runner:main" ]
only:
- tags
- develop

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you add this here, doesn't this mean that this task will always be performed when develop builds ? That means we are going to push snapshots every time we merge something in develop, is that correct ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's the goal

Comment thread .gitlab-ci.yml
tags: [ "runner:main" ]
only:
- tags
- develop

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes that's the goal

@xgouchet
xgouchet requested a review from mariusc83 October 20, 2022 08:04
const val BUILD_TOOLS_VERSION = "31.0.0"

val VERSION = Version(1, 15, 0, Version.Type.Dev)
val VERSION = Version(1, 15, 0, Version.Type.Snapshot)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it enough to publish the snapshot on Sonatype? will it skip staging/approval step if version has -SNAPSHOT suffix? Or will it be some other PR?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sonatype will automatically skip staging based on the -SNAPSHOT suffix

@fuzzybinary
fuzzybinary marked this pull request as ready for review October 20, 2022 13:50
@fuzzybinary
fuzzybinary requested a review from a team as a code owner October 20, 2022 13:50
@fuzzybinary
fuzzybinary force-pushed the RUMM-2579-snapshot-builds branch from 77bdb3a to c1dbcbd Compare October 20, 2022 14:10
@xgouchet
xgouchet requested a review from 0xnm October 20, 2022 14:25
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #1093 (c1dbcbd) into develop (1c9981a) will increase coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1093      +/-   ##
===========================================
+ Coverage    83.20%   83.23%   +0.02%     
===========================================
  Files          273      273              
  Lines         9348     9348              
  Branches      1503     1503              
===========================================
+ Hits          7778     7780       +2     
- Misses        1149     1151       +2     
+ Partials       421      417       -4     
Impacted Files Coverage Δ
...droid/rum/tracking/ActivityViewTrackingStrategy.kt 86.54% <0.00%> (-1.92%) ⬇️
...ain/java/com/datadog/opentracing/PendingTrace.java 56.03% <0.00%> (-1.72%) ⬇️
...rc/main/java/com/datadog/opentracing/DDTracer.java 54.81% <0.00%> (-1.26%) ⬇️
...android/rum/internal/ndk/DatadogNdkCrashHandler.kt 88.65% <0.00%> (+2.16%) ⬆️
...droid/rum/tracking/FragmentViewTrackingStrategy.kt 86.96% <0.00%> (+4.35%) ⬆️
...ndroid/core/internal/persistence/file/EventMeta.kt 90.00% <0.00%> (+10.00%) ⬆️

@fuzzybinary
fuzzybinary merged commit 3f38162 into develop Oct 20, 2022
@fuzzybinary
fuzzybinary deleted the RUMM-2579-snapshot-builds branch October 20, 2022 14:34
@xgouchet xgouchet added this to the 1.15.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants