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

Update Jenkins template example for supervisor builder #375

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

dilyar85
Copy link
Contributor

@dilyar85 dilyar85 commented Mar 6, 2024

This PR adds the required steps in the supervisor builder Jenkins template file to get the apt-get update command working.

See https://kubernetes.io/blog/2023/08/15/pkgs-k8s-io-introduction/ for more details.

Verified internally using the updated Jenkins template:

==> vsphere-supervisor.vm: Creating temporary RSA SSH key for instance...
    vsphere-supervisor.vm: Connecting to Supervisor cluster...
    vsphere-supervisor.vm: Successfully connected to Supervisor cluster
    ...
==> vsphere-supervisor.vm: Provisioning with shell script: /var/folders/nf/cndlm4ts2bd9jz3dd667jfb80000gr/T/packer-shell350374452
    vsphere-supervisor.vm: deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] https://pkg.jenkins.io/debian binary/
    vsphere-supervisor.vm: deb [signed-by=/usr/share/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.28/deb/ /
    vsphere-supervisor.vm: Preconfiguring packages ...
    ...
    vsphere-supervisor.vm: done.
    ...
    vsphere-supervisor.vm: [sample-job] $ /bin/sh -xe /tmp/jenkins7660215003182937504.sh
    vsphere-supervisor.vm: + echo Hello VM-Service from Jenkins
    vsphere-supervisor.vm: Hello VM-Service from Jenkins
    vsphere-supervisor.vm: Finished: SUCCESS
    vsphere-supervisor.vm: Completed sample-job #1 : SUCCESS
    vsphere-supervisor.vm: Skip cleaning up the source objects as specified in config
    vsphere-supervisor.vm: Build 'vsphere-supervisor' finished.
Build 'vsphere-supervisor.vm' finished after 9 minutes 31 seconds.

@dilyar85 dilyar85 requested a review from a team as a code owner March 6, 2024 00:36
Copy link
Collaborator

@tenthirtyam tenthirtyam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Contributor

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nywilken nywilken added the documentation Improvements or additions to documentation label Mar 6, 2024
@nywilken nywilken merged commit f6ddfc5 into hashicorp:main Mar 6, 2024
12 checks passed
@tenthirtyam tenthirtyam added this to the v1.2.5 milestone Mar 6, 2024
@hashicorp hashicorp locked and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants