文件操作 - trigger_windows_build.sh
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/grafana/scripts/trigger_windows_build.sh
编辑文件内容
#!/bin/bash _token=$1 _commit=$2 _buildType=$3 post_data=$(cat <<EOF { "accountName": "Torkeldegaard", "projectSlug": "grafana", "branch": "master", "commitId": "${_commit}", "environmentVariables": { "buildType": "${_buildType}" } } EOF ) echo "${post_data}" curl \ --header "Accept: application/json" \ --header "Content-Type: application/json" \ --header "Authorization: Bearer ${_token}" \ --data "${post_data}" \ --request POST https://ci.appveyor.com/api/builds
修改文件时间
将文件时间修改为当前时间的前一年
删除文件