Page MenuHomeSoftware Heritage

Create job template to build docker image
ClosedPublic

Authored by ardumont on Mar 31 2022, 6:23 PM.

Details

Summary

The manual job build [1] pushed successfully the softwareheritage/maven-index-exporter [2]
(build, push, clean).

The remaining limitation is about the account to configure in jenkins.

We are currently using vsellier's api token... (part of the softwareheritage organization in dockerhub).
We only have 3 seats in that orga, so we do not have a real place for a bot account for now.

[1] https://jenkins.softwareheritage.org/job/wip-maven-indexer-exporter/

[2] https://hub.docker.com/repository/docker/softwareheritage/maven-index-exporter/tags?page=1&ordering=last_updated

Related to T4105

Test Plan

tox

And manual install [1].

Diff Detail

Repository
rCJSWH Jenkins jobs
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 28062
Build 43949: arc lint + arc unit

Event Timeline

ardumont edited the test plan for this revision. (Show Details)
vsellier requested changes to this revision.Apr 1 2022, 8:32 AM
vsellier added a subscriber: vsellier.
vsellier added inline comments.
jobs/templates/swh-build-docker-image.groovy.j2
43

Found the origin of the clone issue at the end.
The pipeline doesn't like the python context ;)

48

we should add a step to cleanup the generated image to avoid keeping useless images (for jenkins) locally

This revision now requires changes to proceed.Apr 1 2022, 8:32 AM

Adapt according to review:

  • drop the spurious 'with' which ends up creating the NPE
  • Clean up labelles images built during the build

It's fully green now! [1]

[1] https://jenkins.softwareheritage.org/job/wip-maven-indexer-exporter/98/console

ardumont edited the test plan for this revision. (Show Details)
ardumont added inline comments.
jobs/templates/swh-build-docker-image.groovy.j2
43

d'oh!

This revision is now accepted and ready to land.Apr 1 2022, 12:00 PM
ardumont marked an inline comment as done.

Drop unused display name