adobe / adobe/aio-cli-plugin-api-mesh
Cannot create CI/CD process for re-publishing Mesh
- Lingua principale
- JavaScript
- Stelle
- 7
- Fork
- 8
- Merge medio
- 1g 15h
- PR unite (30g)
- 7
Descrizione
I'm trying to create CI/CD process for Mesh. So goal is to have Gitlab pipeline which triggers mesh update everytime mesh being updated in git repository.
By following documentation I can create CI/CD for deploying App Builder application and it works fine, but I cannot do the same for mesh.
### Expected Behaviour
After I configured by Secrets,
`aio api-mesh update mesh.json`
Have to update mesh without using browser login again and again. Same as command
`aio app deploy`
So just to be clear, exactly same project, execute deploy command without asking for browser login, but mesh publish do - which makes impossible to implement CI/CD pipelines.
### Actual Behaviour
`aio api-mesh update mesh.json` asking to login if run inside pipeline even if `aio app deploy` not
#### Steps to Reproduce
1. Create New App Builder application
2. deploy application with `aio app deploy`
3. Application successfully deployed.
4. Run any `aio api-mesh create mesh.json` command
5. You will be forced to login via browser.
#### Logs taken while reproducing problem
Some notes: I see that mesh plugin has own auth helpers:
@adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-api-mesh/src/helpers.js
which maybe working in different manner then default auth mechanism.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia da @adobe/aio-cli/node_modules/@adobe/aio-cli-plugin-api-mesh/src/helpers.js e confronta il relativo percorso di autenticazione con quello usato da aio app deploy. Riproduci aio api-mesh create mesh.json e aio api-mesh update mesh.json nel contesto della GitLab pipeline descritto. Il lavoro è completato quando i comandi mesh usano i secrets configurati senza richiedere un ulteriore accesso tramite browser, con coverage per il caso della pipeline.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- authentication, cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100