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

[202211] build: add an env var to run make reset unattended #13821

Merged

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 202211 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
@liat-grozovik liat-grozovik changed the title build: add an env var to run make reset unattended [202211] build: add an env var to run make reset unattended Feb 21, 2023
@liat-grozovik liat-grozovik merged commit 2866a0e into sonic-net:202211 Feb 21, 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.

2 participants