We are running DX with CI/CD using Jenkins. Our CI/CD scripts will create the scratchOrg properly, and provide the login details (domain, username, password) We use this to log in when there is a build error in the CI/CD test coverage.
The problem is, when we log in using these credentials, we are prompted for a verification code the first time logging in. Since the CI/CD scripts are beyond our control, the email for the user is usually not the same dev who wants to log in. This means the verification code will not be emailed directly to the user who needs it. If it's after hours, then we might need to wait a full day.
Is there an easier way to log into a CI/CD created scratch org?