Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ python3 setup.py bdist_wheel
pip install --upgrade --force-reinstall dist/sonar_tools-*-py3-*.whl

if [ "$build_image" == "1" ]; then
docker build -t olivierkorach/sonar-tools:3.4 -t olivierkorach/sonar-tools:latest -f snapshot.Dockerfile .
docker build -t olivierkorach/sonar-tools:3.4.1 -t olivierkorach/sonar-tools:latest -f snapshot.Dockerfile .
fi

if [ "$build_docs" == "1" ]; then
Expand All @@ -69,5 +69,5 @@ if [ "$release" = "1" ]; then
fi

if [ "$release_docker" = "1" ]; then
docker buildx build --push --platform linux/amd64,linux/arm64 -t olivierkorach/sonar-tools:3.4 -t olivierkorach/sonar-tools:latest -f release.Dockerfile .
docker buildx build --push --platform linux/amd64,linux/arm64 -t olivierkorach/sonar-tools:3.4.1 -t olivierkorach/sonar-tools:latest -f release.Dockerfile .
fi
4 changes: 4 additions & 0 deletions doc/what-is-new.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Next version yet unreleased

# Version 3.4.1

- Hotfix: Fix systematic crash on `sonar-findings-export`: [Issue #1358](https://github.com/okorach/sonar-tools/issues/1358)

# Version 3.4

- `sonar-tools` is now available as a docker image
Expand Down
2 changes: 1 addition & 1 deletion release.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ COPY ./LICENSE .
COPY ./sonar/audit sonar/audit

RUN pip install --upgrade pip \
&& pip install sonar-tools==3.4
&& pip install sonar-tools==3.4.1

USER ${USERNAME}
WORKDIR /home/${USERNAME}
Expand Down
8 changes: 5 additions & 3 deletions sonar/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from sonar.util import types
import sonar.logging as log
import sonar.sqobject as sq
from sonar import components, syncer, settings, exceptions
from sonar import components, settings, exceptions
from sonar import projects
import sonar.utilities as util

Expand Down Expand Up @@ -330,17 +330,19 @@ def sync(self, another_branch: Branch, sync_settings: types.ConfigSettings) -> t
:return: sync report as tuple, with counts of successful and unsuccessful issue syncs
:rtype: tuple(report, counters)
"""
from sonar.syncer import sync_lists

report, counters = [], {}
log.info("Syncing %s (%s) and %s (%s) issues", str(self), self.endpoint.url, str(another_branch), another_branch.endpoint.url)
(report, counters) = syncer.sync_lists(
(report, counters) = sync_lists(
list(self.get_issues().values()),
list(another_branch.get_issues().values()),
self,
another_branch,
sync_settings=sync_settings,
)
log.info("Syncing %s (%s) and %s (%s) hotspots", str(self), self.endpoint.url, str(another_branch), another_branch.endpoint.url)
(tmp_report, tmp_counts) = syncer.sync_lists(
(tmp_report, tmp_counts) = sync_lists(
list(self.get_hotspots().values()),
list(another_branch.get_hotspots().values()),
self,
Expand Down
4 changes: 2 additions & 2 deletions sonar/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@

"""

PACKAGE_VERSION = "3.5"
MIGRATION_TOOL_VERSION = "0.2"
PACKAGE_VERSION = "3.4.1"
MIGRATION_TOOL_VERSION = "0.1.1"