Skip to content

Commit

Permalink
added conditional for pom.xml to commitCommonFiles function
Browse files Browse the repository at this point in the history
  • Loading branch information
victordrose committed Dec 21, 2023
1 parent 3a661ff commit ac1aa40
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/pipelines/common/pipeline_generator.lib
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,11 @@ function commitCommonFiles {
# Add the YAML files.
git add "$pipelinePath" -f

# Add the changes in the pom.xml file
git add "pom.xml"
# Check if the pom.xml file exists before trying to add it.
if [ -f "pom.xml" ]; then
# Add the changes in the pom.xml file
git add "pom.xml"
fi

# Git commit and push it into the repository.
# changing all files to be executable
Expand Down

0 comments on commit ac1aa40

Please sign in to comment.