Search code examples
gitlaravelazureazure-git-deployment

Azure deployment from git gives same error even when fixed in next commit


I am deploying my laravel app using bitbucket git remote repo as source. It had been working fine, and deployment updated on each commit. But at one specific commit, deployment was failed. Following are the error logs:

deployment_error_logs

From the errors, It is clear that there are some invalid characters in file name, eg, colon. After fixing this error and committing changes, the deployment runs on commit, but ALWAYS fails and shows EXACTLY SAME error log. Important point here is, the name of the file contained current date. if you notice, the log, it is still same today, with old day date when problem first appeared.

I tried changing source branch, changing url, disconnecting and connecting back deployment source, but deployment always fails, showing same error. It gives me feeling like azure has kinda cached/stacked my failed deployment, and always shows error (I don't know as I'm new to it).

Is there anything that I have to do? anything to reset? any option to build or something? I must be missing something. any help/guidance is appreciated, as I am stuck for two days.


Solution

  • It was happening just due to my careless branch management, as I am new to git. I just noticed, these files were physically present in my master branch, though I have removed the code that generates this. Removing files from branch fixed the problem