Skip to content

Commit

Permalink
remove package version pin due to PPA only keeping one version of the…
Browse files Browse the repository at this point in the history
… deb package
  • Loading branch information
Thanhphan1147 committed Mar 11, 2024
1 parent f9fce6c commit 901f0e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
logger = logging.getLogger(__name__)
AGENT_SERVICE_NAME = "jenkins-agent"
APT_PACKAGE_NAME = "jenkins-agent"
APT_PACKAGE_VERSION = "1.0.6"
SYSTEMD_SERVICE_CONF_DIR = "/etc/systemd/system/jenkins-agent.service.d/"
PPA_URI = "https://ppa.launchpadcontent.net/canonical-is-devops/jenkins-agent-charm/ubuntu/"
PPA_DEB_SRC = "deb-https://ppa.launchpadcontent.net/canonical-is-devops/jenkins-agent-charm/ubuntu/-" # noqa: E501 pylint: disable=line-too-long
Expand Down Expand Up @@ -117,7 +116,7 @@ def install(self) -> None:
# Install the necessary packages
apt.update()
apt.add_package("openjdk-17-jre")
apt.add_package(package_names=APT_PACKAGE_NAME, version=APT_PACKAGE_VERSION)
apt.add_package(package_names=APT_PACKAGE_NAME)
except (apt.PackageError, apt.PackageNotFoundError, apt.GPGKeyError) as exc:
raise PackageInstallError("Error installing the agent package") from exc

Expand Down

0 comments on commit 901f0e5

Please sign in to comment.