Ask Search:
Nate PlumbNate Plumb 

Can't pass "Integrate with GitLab" stage of "Build an automated pipeline with GitLab" trailhead project

Hi,

I'm trying to work through the "Build an automated pipeline with GitLab" trailhead project. I've tried twice now, and both times everything seemed great until I went to verify at the end of the "Integrate with GitLab" stage. Verification fails and I just see the following message: "We could not confirm that you authenticated to your Dev Hub org using JWT-based auth flow with the 'DreamHouse_demo' Connected App".

I believe I have followed all the steps exactly as described. I've noticed there are some inconsistencies in capitalization between the instructions and the associated screenshots, but I believe I've been consistent. I also read the description of the JWT-based authentication flow here: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_jwt_flow.htm and I seem to be conforming to the provided description.

I'm a little lost at this point. From the description, I assume this has nothing to do with anything on GitLab, but is an indication that I must have missed something while configuring my Dev Hub org or the connected app. Can anyone think of anything important that may have been omitted from the trailhead instructions? Or if not, any ideas what I might try next?
Best Answer chosen by Nate Plumb
Young Hwan KimYoung Hwan Kim
Hi,
Passed in a few days. Run this once and try again.

sfdx force:org:list
a, b, c, d.....
sfdx force:auth:logout --all --noprompt
sfdx force:auth:jwt:grant.......

All Answers

Richard ClarkRichard Clark
I followed this course straight after TDX19 and it worked, eventually. The problem I had was I had to keep re-submitting the GitLab processes which failed due to repeated timeouts (using free edition as couldn't get hold of the temporary Gold access in time).
Orlando BricenoOrlando Briceno
I'm having the same situation, getting We could not confirm that you authenticated to your Dev Hub org using JWT-based auth flow with the 'DreamHouse_demo' Connected App.

 
I believe I followed all the steps exactly, creation of certificates, encryption, sfdx command.

User-added image

I thought that by getting that success message meant everything went ok.
Nate PlumbNate Plumb
Thanks for the responses. Richard, is there a way to find out if the GitLab processes are, indeed, failing due to repeated timeouts? As I understand it, your suggestion is simply to keep re-submitting until it suddenly passes. I attempted re-submitting 4 or 5 times, so I'm wondering if there's a way to find out if it would be worth my time to keep trying.
Young Hwan KimYoung Hwan Kim
Hi,
Passed in a few days. Run this once and try again.

sfdx force:org:list
a, b, c, d.....
sfdx force:auth:logout --all --noprompt
sfdx force:auth:jwt:grant.......
This was selected as the best answer
Tien LeTien Le
Thank you so much @Young Hwan Kim.  logout then re-auth worked!!!
succeeded
Vito BarrinaVito Barrina
@young Hwan Kim nailed it.  SFDX Logout and authenticate again.
Davide GammoneDavide Gammone
@Young Hwan Kim great work!
Ida Van NiekerkIda Van Niekerk

@Young Hwan Kim, thanks so much. Worked for me too.