SOLVED Git Push Deployment does not work for all files

Operating System & Version
Operating System linux
cPanel & WHM Version
cPanel Version 96.0 (build 9)

mBeirne

Registered
Jun 2, 2021
3
0
1
IRELAND
cPanel Access Level
Root Administrator
I have a GIT repository set up on my server and can clone, pull etc. to my local machine. I was able to Push-deploy changes to the server with the below .cpanel.yml file off the master branch but if I change the file to be deployed or the branch to deploy from then nothing gets deployed.

Working .cpanel.yml

Code:
---
deployment:
  tasks:
    - export DEPLOYPATH=/home/user/public_html/_DEV/
    - /bin/cp index.php $DEPLOYPATH
But when I change branch and target a different file nothing gets deployed
Code:
---
deployment:
  tasks:
    - export DEPLOYPATH=/home/user/public_html/_DEV/
    - /bin/cp log_dB.php $DEPLOYPATH
Below are the logs.
vc_1622629447.11365_git_deploy.log
Code:
1622629447.262202210
$ /bin/cp index.php $DEPLOYPATH

Task completed with exit code 0.

1622629447.26442
Build completed with exit code 0
user_task_runner_log
Code:
2021-06-02T09:52:43Z: Processing 00000000/60b754eb08f890...
2021-06-02T09:52:43Z:   doing Cpanel::UserTasks::VersionControl::deploy
2021-06-02T09:52:43Z: Queue empty, terminating
2021-06-02T09:53:32Z: Processing 00000000/60b7551ca0e57d...
2021-06-02T09:53:32Z:   doing Cpanel::UserTasks::VersionControl::deploy
2021-06-02T09:53:32Z: Queue empty, terminating
2021-06-02T10:24:07Z: Processing 00000000/60b75c471be4ca...
2021-06-02T10:24:07Z:   doing Cpanel::UserTasks::VersionControl::deploy
2021-06-02T10:24:07Z: Queue empty, terminating
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,519
1,030
313
cPanel Access Level
Root Administrator
Hey there! I had one of our developers that is familiar with Git look through this with me, and neither of us are seeing anything out of the ordinary. The only possibility we came up with was that the change that touches log_dB.php was not checked out.
 

mBeirne

Registered
Jun 2, 2021
3
0
1
IRELAND
cPanel Access Level
Root Administrator
Hey there! I had one of our developers that is familiar with Git look through this with me, and neither of us are seeing anything out of the ordinary. The only possibility we came up with was that the change that touches log_dB.php was not checked out.
Hi, thanks for the response. I have the branch checked out on my local machine (using PHPStorm) and in cPanel on the Git version control page the branch is displayed as the " Currently Checked-Out Branch". Is that what you mean?
 

mBeirne

Registered
Jun 2, 2021
3
0
1
IRELAND
cPanel Access Level
Root Administrator
I found the issue, it looks like I had 2 .cpanel.yml files in my repository on the server. I did not notice until I pulled from the server to local and saw the two files in my directory, I didn't notice this earlier on the server because the .cpanel.yml file is hidden when in File Manager.
Thank you for the help.