Using git from Linux command line

I use a Linux server to update any code then submit that code using “git commit -a -m ‘comment’” I have a “.gitlab-ci.yml” file with info to execute an API call to a Tower server. Everything used to work fine. As soon as I commit the revisions, the pipeline works. Now, for some reason, it doesn’t work from the command line. If I want the pipeline to trigger, I have to update the code from the GitLab WebIDE. Is this something that was removed in newer versions, or is there something I now have to set? It seems that I lost this functionality when I upgraded our gitlab server.

Hi @osk_dthompson

do you have any rules or only/except on your jobs?

I do have a rule (see complete file .gitlab-ci.yml below), but I’ve even tried it by removing every thing and just having the different stages execute an echo command and it still only works from the gitlab web interface, not the command line.

— .gitlab-ci.yml


  • deploy

stage: deploy
- curl -k -u “$awx_user:$awx_passwd” -H “Content-Type:application/json” -X POST -d ‘{}’ "$ansible_tower_host"api/v2/projects/11/update/
- if: ‘$CI_COMMIT_REF_NAME == “development”’

stage: deploy
- curl -k -u “$awx_user:$awx_passwd” -H “Content-Type:application/json” -X POST -d ‘{}’ "$ansible_tower_host"api/v2/projects/9/update/
- if: ‘$CI_COMMIT_REF_NAME == “master”’

Pipelines on Push are still normal behaviour. Do you see the commits in the UI and they don’t have any pipeline? And this is Branch pipeline, you are not trying it with Merge Reuqest pipeline, right?

This is not a merge but a push. I do see the commits in the web interface, but the pipeline doesn’t execute unless I go directly to the web interface and make my changes.

me too,CI only works on webIDE push not when push with git commands

I guess this is just broken and unfixable.