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

[202205] build: add an env var to run make reset unattended #13820

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

mathieulaunay
Copy link
Contributor

  • previously "make reset" was expecting user input from the terminal to do its job
  • setting UNATTENDED to any non-zero string will allow "make reset" to run without interactive confirmation

Why I did it

This is the backport to 202205 from master (see PR #12207)

When doing automated builds of SONiC images, we need to reset the working repositories between each build.

How I did it

Adding an environment variable that is read by Makefile.work

How to verify it

running
UNATTENDED=1 make reset
should make an automatic reset of all working directories

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205

Description for the changelog

add an environment variable to run "make reset" unattended

Ensure to add label/tag for the feature raised. example - PR#2174 where, Generic Config and Update feature has been labelled as GCU.

N/A

Link to config_db schema for YANG module changes

N/A

A picture of a cute animal (not mandatory but encouraged)

  - previously "make reset" was expecting user input from the terminal
    to do its job
  - setting UNATTENDED to any non-zero string will allow "make reset" to
    run without interactive confirmation

Signed-off-by: Mathieu Launay <m.launay@criteo.com>
@liat-grozovik liat-grozovik changed the title build: add an env var to run make reset unattended [202205] build: add an env var to run make reset unattended Feb 21, 2023
@liat-grozovik
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yxieca yxieca enabled auto-merge (squash) February 22, 2023 22:42
@yxieca yxieca merged commit bda91a1 into sonic-net:202205 Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants