Instanciate the RPC at initialization

This commit is contained in:
Florian Anceau
2024-06-02 13:41:01 +00:00
parent e6bbd483cc
commit 1928ec8190
3 changed files with 16 additions and 5 deletions

View File

@@ -28,7 +28,7 @@ build:
extends: .parallel
rules:
- if: $CI_COMMIT_TAG
- if: $CI_MERGE_REQUEST_ID
- if: $CI_MERGE_REQUEST_ID && $CI_MERGE_REQUEST_APPROVED != "true"
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE == "weekly-build"
artifacts:
paths:
@@ -52,7 +52,7 @@ test:
- TARGET: unstable
rules:
- if: $CI_COMMIT_TAG
- if: $CI_MERGE_REQUEST_ID
- if: $CI_MERGE_REQUEST_ID && $CI_MERGE_REQUEST_APPROVED != "true"
- if: $CI_PIPELINE_SOURCE == "schedule" && $SCHEDULED_PIPELINE == "weekly-build"
artifacts:
paths:
@@ -144,4 +144,4 @@ weekly-build-scheduler:
code_quality:
rules:
- if: $CI_MERGE_REQUEST_ID
- if: $CI_MERGE_REQUEST_ID && $CI_MERGE_REQUEST_APPROVED != "true"

View File

@@ -18,14 +18,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[tag]: url_to_tag
-->
## [3.0.1]
## [3.1.0] - 2024/06/02
### Changed
- Disable pipelines on approved merge requests
### Fixed
- Instanciate the RPC client at the initialization (#63)
[3.1.0]: https://gitlab.com/florian.anceau/docker-seafile-client/-/tags/3.1.0
<!-- /3.1.0 -->
## [3.0.1] - 2024/05/27
### Added
* New script to schedule the best possible time to run the build. It relies on WattTime Load Shift feature (#56)
* Weekly build through pipeline schedules. (#56)
### Changed
* Every links pointing to the previous repository flwgns-docker/seafile-client are pointing now to florian.anceau/docker-seafile-client. (#56)
[3.0.1]: https://gitlab.com/florian.anceau/docker-seafile-client/-/tags/3.0.1
[3.0.1]: https://gitlab.com/florian.anceau/docker-seafile-client/-/tags/3.0.1
<!-- /3.0.1 -->
## [3.0.0] - 2024/03/16

View File

@@ -145,6 +145,8 @@ class Client:
logger.debug("Waiting for the Seafile client socket to be created.")
time.sleep(1)
self.rpc = seafile.RpcClient(str(self.socket))
def configure(self):
command = self.binary + ["config"]
if self.skip_ssl_cert: