merge_access_levels |grep -o '"access_level_description": *"*"' | grep -o '"*"Īllow_to_force_push=( $(curl -sS -header "PRIVATE-TOKEN: $TOKEN" "$URL/api/v4/projects/$i/protected_branches/"$branch""| jq -r. push_access_levels |grep -o '“access_level_description”: “”’ | grep -o '“*" Allowed_to_Merge=( $(curl -sS -header "PRIVATE-TOKEN: $TOKEN" "$URL/api/v4/projects/$i/protected_branches/"$branch""| jq -r. I need to specify an initial root password so first-time logins are not prompted with the password reset screen. ” | jq -r “.name”) )īranch1=( $( curl -sS -header “PRIVATE-TOKEN: $TOKEN” “$URL/api/v4/projects/$i/protected_branches” | jq “.path_with_namespace”) )įor branch in $(curl -sS -header “PRIVATE-TOKEN: $TOKEN” “$URL/api/v4/projects/$i/protected_branches/”$branch"“| jq -r. Im trying to do an automated deployment of gitlab that has everything pre-configured. id) )įor i in $( curl -sS -header “PRIVATE-TOKEN: $TOKEN” “$URL/api/v4/projects/$i/protected_branches” | jq -r “. If you want to store the exit status, put it in one line, so that gitlab doesn't detect it. output (grep -c 'Error:' outfile) true. if -z SSHAUTHSOCK then Check for a currently running instance of the agent RUNNINGAGENTps -ax grep ssh-agent -s grep -v grep wc -l. ProjectId=( $(curl -sS -header “PRIVATE-TOKEN: $TOKEN” “$URL/api/v4/projects?&per_page=100&sort=asc&page=”| jq -r. If you want to ignore an exit status of a command, it's typical to add : or true. URL=$(cat /etc/gitlab/gitlab.rb | grep external_url | grep -vE ‘pages|registry’ | grep -v ^# | cut -f 2 -d “'”) I have a script which prints project id with other attributes like allowed to push, allowed to merge I need to replace project name with project id. About GitLab GitLab: the DevOps platform Explore GitLab Install GitLab How GitLab compares Get started GitLab docs GitLab Learn Pricing Talk to an expert /.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |