#First assign a user to user variable user = User.find_by(username: 'your username here')
job = Ci::Build.find_by_sql("select * from ci_builds where status = 'failed' and project_id = '62'")
job.each { |j| Ci::Build.retry(j, user) }
# Step 1: Set priveleges | |
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all | |
Starting... | |
Setting allow all users to YES. | |
Setting all users privileges to 1073742079. | |
Done. | |
# Step 2: Allow VNC clients |