I am making a jenkins pipeline job, which call jenkins file , inside that i m calling terraform.sh file with CredentialsBinding . when i m running the i m getting below error in terraform init.
Getting source "git::ssh://git@gitlab.com/****/terraform-modules.git//pre-production?ref=0.0.1"
Error downloading modules: Error loading modules: error downloading 'ssh://git@gitlab.com/****/terraform-modules.git?ref=0.0.1': /usr/bin/git exited with 128: Cloning into '.terraform/modules/515fc2bd0e7790ab33b22f826cd0173b'...
Permission denied (publickey).
fatal: Could not read from remote repository.