I am creating a nightly build powershell script for an android app. It will behave like this:
This script will be run every night by a windows scheduled task.
I'm having trouble with automatically getting the latest code. I am being prompted for credentials. How can I write a nightly build script that includes my credentials so that I dont have type them in every single time?
You can add a _netrc
file in C:\\Users\\Ben
with your credentials in it:
machine github.com
login yourGitHUbLogin
password yourGitHubPassword
See " Git - How to use .netrc
file on windows to save user and password ".
If the idea of leaving your credential in plain text doesn't seem a good one, you can encrypt that file with gpg .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.