-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update jenkins lts version to 2.440.1 (#126)
Co-authored-by: javierdelapuente <[email protected]> Co-authored-by: charlie4284 <[email protected]>
- Loading branch information
1 parent
b3c03d1
commit e152d7d
Showing
10 changed files
with
115 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- markdownlint-disable --> | ||
|
||
<a href="../src/pebble.py#L0"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
# <kbd>module</kbd> `pebble.py` | ||
Pebble functionality. | ||
|
||
**Global Variables** | ||
--------------- | ||
- **JENKINS_SERVICE_NAME** | ||
|
||
--- | ||
|
||
<a href="../src/pebble.py#L20"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a> | ||
|
||
## <kbd>function</kbd> `replan_jenkins` | ||
|
||
```python | ||
replan_jenkins( | ||
container: Container, | ||
jenkins_instance: Jenkins, | ||
state: State | ||
) → None | ||
``` | ||
|
||
Replan the jenkins services. | ||
|
||
|
||
|
||
**Args:** | ||
|
||
- <b>`container`</b>: the container for with to replan the services. | ||
- <b>`jenkins_instance`</b>: the Jenkins instance. | ||
- <b>`state`</b>: the charm state. | ||
|
||
|
||
|
||
**Raises:** | ||
|
||
- <b>`JenkinsBootstrapError`</b>: if an error occurs while bootstrapping Jenkins. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,24 +178,20 @@ def app_suffix_fixture(): | |
return "".join(random.choices(string.ascii_lowercase, k=4)) # nosec | ||
|
||
|
||
@pytest_asyncio.fixture(scope="function", name="jenkins_k8s_agents") | ||
async def jenkins_k8s_agents_fixture( | ||
model: Model, app_suffix: str | ||
) -> AsyncGenerator[Application, None]: | ||
@pytest_asyncio.fixture(scope="module", name="jenkins_k8s_agents") | ||
async def jenkins_k8s_agents_fixture(model: Model): | ||
"""The Jenkins k8s agent.""" | ||
agent_app: Application = await model.deploy( | ||
agent: Application = await model.deploy( | ||
"jenkins-agent-k8s", | ||
base="[email protected]", | ||
config={"jenkins_agent_labels": "k8s"}, | ||
channel="latest/edge", | ||
application_name=f"jenkins-agent-k8s-{app_suffix}", | ||
) | ||
await model.wait_for_idle(apps=[agent_app.name], status="blocked") | ||
yield agent_app | ||
await model.remove_application(agent_app.name, block_until_done=True) | ||
await model.wait_for_idle(apps=[agent.name], status="blocked") | ||
return agent | ||
|
||
|
||
@pytest_asyncio.fixture(scope="function", name="k8s_agent_related_app") | ||
@pytest_asyncio.fixture(scope="module", name="k8s_agent_related_app") | ||
async def k8s_agent_related_app_fixture( | ||
jenkins_k8s_agents: Application, | ||
application: Application, | ||
|
@@ -207,7 +203,7 @@ async def k8s_agent_related_app_fixture( | |
await application.model.wait_for_idle( | ||
apps=[application.name, jenkins_k8s_agents.name], wait_for_active=True, check_freq=5 | ||
) | ||
yield application | ||
return application | ||
|
||
|
||
@pytest_asyncio.fixture(scope="function", name="extra_jenkins_k8s_agents") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters