pipeline {
  agent any

  stages {
    stage('Checkout') {
      steps {
        git branch: 'main', url: 'https://github.com/Klark-Kalahan/arasa.git', credentialsId: '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'
      }
    }

    stage('Deploy') {
      steps {
        sshagent(['deploy']) {  // Reemplaza con el ID correcto de tus credenciales SSH
          sh 'scp -o StrictHostKeyChecking=no -r * root@104.207.155.57:/var/www/html'
        }
      }
    }
  }
}
