diff --git a/src/manifests_workflow/input_manifests.py b/src/manifests_workflow/input_manifests.py index ddf3bf6f53..e40e3a9e67 100644 --- a/src/manifests_workflow/input_manifests.py +++ b/src/manifests_workflow/input_manifests.py @@ -146,7 +146,7 @@ def add_to_cron(self, version: str) -> None: with open(jenkinsfile, "r") as f: data = f.read() - cron_entry = f"H/10 * * * * %INPUT_MANIFEST={version}/{self.prefix}-{version}.yml;TARGET_JOB_NAME=distribution-build-{self.prefix}\n" + cron_entry = f"H 1 * * * %INPUT_MANIFEST={version}/{self.prefix}-{version}.yml;TARGET_JOB_NAME=distribution-build-{self.prefix}\n" if cron_entry in data: raise ValueError(f"{jenkinsfile} already contains an entry for {self.prefix} {version}") diff --git a/tests/tests_manifests_workflow/test_input_manifests.py b/tests/tests_manifests_workflow/test_input_manifests.py index d2c5365b5f..46393ccd0a 100644 --- a/tests/tests_manifests_workflow/test_input_manifests.py +++ b/tests/tests_manifests_workflow/test_input_manifests.py @@ -75,7 +75,7 @@ def test_add_to_cron(self, mock_open: MagicMock) -> None: mock_open.assert_has_calls([call(InputManifests.cron_jenkinsfile(), 'w')]) mock_open.assert_has_calls([call(InputManifests.cron_jenkinsfile(), 'r')]) mock_open().write.assert_called_once_with( - f"parameterizedCron '''\n{' ' * 12}H/10 * * * * %INPUT_MANIFEST=0.1.2/test-0.1.2.yml;TARGET_JOB_NAME=distribution-build-test\n" + f"parameterizedCron '''\n{' ' * 12}H 1 * * * %INPUT_MANIFEST=0.1.2/test-0.1.2.yml;TARGET_JOB_NAME=distribution-build-test\n" ) def test_create_manifest_with_components(self) -> None: