Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set GOCACHE and stop in not Jenkins job found #29

Merged
merged 1 commit into from
Mar 4, 2024
Merged
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
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM python:3.12
EXPOSE 5000

ENV PRE_COMMIT_HOME=/tmp
ENV GOCACHE=/tmp/.cache/go-build
COPY pyproject.toml poetry.lock README.md /ci-jobs-trigger/
COPY ci_jobs_trigger/ /ci-jobs-trigger/ci_jobs_trigger/
WORKDIR /ci-jobs-trigger
Expand Down
3 changes: 3 additions & 0 deletions ci_jobs_trigger/libs/jenkins/utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ def jenkins_trigger_job(job, config_data):
verify=False,
)
job = api.get_job(full_name=job)
if not job:
return False, None

job_params = {}
for param in job.get_parameters():
job_params[param["defaultParameterValue"]["name"]] = param["defaultParameterValue"]["value"]
Expand Down