Estoy tratando de integrar gitlab CI en mi proyecto de nodo, tengo acceso SSH, pero mi secuencia de comandos se detiene con un error:
fatal: could not read Username for 'https://gitlab.com': No such device or address debug2: channel 0: written 83 to efd 7 debug3: channel 0: will not send data after close debug2: channel 0: obuf empty debug2: channel 0: chan_shutdown_write (i3 o1 sock -1 wfd 6 efd 7 [write]) debug2: channel 0: output drain -> closed debug2: channel 0: almost dead debug2: channel 0: gc: notify user debug2: channel 0: gc: user detached debug2: channel 0: send close debug3: send packet: type 97 debug2: channel 0: is dead debug2: channel 0: garbage collecting debug1: channel 0: free: client-session, nchannels 1 debug3: channel 0: status: The following connections are open: #0 client-session (t4 r0 i3/0 o3/0 e[write]/0 fd -1/-1/7 sock -1 cc -1) debug3: send packet: type 1 debug1: fd 0 clearing O_NONBLOCK debug3: fd 1 is not O_NONBLOCK debug1: fd 2 clearing O_NONBLOCK Transferred: sent 3560, received 3156 bytes, in 0.7 seconds Bytes per second: sent 5437.2, received 4820.2 debug1: Exit status 1 Cleaning up file based variables 00:01 ERROR: Job failed: exit code 1ya lo intenté
git config --global credential.helper store git config --global user.password "myPassword" git config --global user.email "myEmail"Veo que git no ofrece una opción de no interacción...
imagen: nodo: más reciente con servidor debian
Mis credenciales ssh y el acceso están bien
Cuando pruebo directamente en el servidor, todavía me pide la información de mi conexión
es un repositorio privado
Intente cambiar el origen de su repositorio en el servidor usando este comando:
git remote set-url origin https://username:access_token_or_password@gitlab.com/path_to_your_repo/repo.gitDe esta manera, no solicitará credenciales mientras git pull o git push