I have set a pipeline that watchs a codeCommit repository with a given branch and it works perfectly.
I want to restrict my pipeline to watch only a folder on my repo. Imagine my repo contains two folders : fold1 and fold2. As per now, any commit on fold1 or fold2 triggers the pipeline. I want to restrict it to only changes on fold1.
I haven't found anyway in AWS documentation to do this. Obviously, I can split into two repositories which an option that I prefer to avoid since all code goes togather.
CodePipeline doesn't currently have this feature. The best workaround would be to have your build task figure out which folders have changed and fail the build if nothing has changed. CodePipeline won't promote changes that fail the build.
since all code goes togather.
If the code depends on each other then it could actually be desirable to always release the software regardless of what changed. CodePipeline is a continuous delivery product and in continuous delivery it's highly desirable to have changes quickly and frequently deployed.