pipeline {
    agent any
    environment {
        GITLAB_TOKEN = 't65KNxGvia3ZWRgNGsux'
    }
    stages {
        stage('SSH Connection') {
            steps {
                script {
                    // Inicia el bloque sshagent con las credenciales SSH llamadas 'PSP_QA'
                    sshagent(['PSP_QA']) {
                        // Dentro de este bloque, las credenciales SSH estarán disponibles y se usarán para autenticar
                        sh "ssh -o StrictHostKeyChecking=no ubuntu@207.249.96.174 'cd /var/www/html/qa/backendpsp && sudo git pull origin dev'"

                    }
                }
            }
        }
    }
}
