Skip to content

Commit

Permalink
use ssh key from workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
atimin committed Jun 19, 2019
1 parent 17c79a3 commit 3417ca1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ pipeline {
env.BUILDDIRNAME = 'C:\\build\\' + readFile('DIRNAME.txt').trim()
}

dir('/root/WinBuildServer') {
sh 'ssh 127.0.0.1 -l vagrant -p 2222 -i /root/.vagrant.d/insecure_private_key "cd $BUILDDIRNAME && C:\\build_vs.bat -t local -B Release -i $BUILDDIRNAME\\.ASNeG -vs \\"Visual Studio 15 2017 Win64\\" -j 2"'
sh 'ssh 127.0.0.1 -l vagrant -p 2222 -i /root/.vagrant.d/insecure_private_key "cd $BUILDDIRNAME && C:\\build_vs.bat -t tst -B Release -s $BUILDDIRNAME\\.ASNeG -vs \\"Visual Studio 15 2017 Win64\\" -j 2"'
}
sh 'ssh 127.0.0.1 -l vagrant -p 2222 -i $WORKSPACE/insecure_private_key "cd $BUILDDIRNAME && C:\\build_vs.bat -t local -B Release -i $BUILDDIRNAME\\.ASNeG -vs \\"Visual Studio 15 2017 Win64\\" -j 2"'
sh 'ssh 127.0.0.1 -l vagrant -p 2222 -i $WORKSPACE/insecure_private_key "cd $BUILDDIRNAME && C:\\build_vs.bat -t tst -B Release -s $BUILDDIRNAME\\.ASNeG -vs \\"Visual Studio 15 2017 Win64\\" -j 2"'

}
}
Expand Down

0 comments on commit 3417ca1

Please sign in to comment.