Skip to content

Commit

Permalink
fix(cd): trying to replace wrong step
Browse files Browse the repository at this point in the history
  • Loading branch information
ChronosSF committed Jan 3, 2025
1 parent 0ec8a94 commit 3357a5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
1 change: 1 addition & 0 deletions azure-devops/app-crm-cd-yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
trigger:
branches:
include:
- master
Expand Down
15 changes: 4 additions & 11 deletions azure-devops/templates/cd-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,10 @@ steps:
Contents: web.config
TargetFolder: $(Build.SourcesDirectory)/${{ parameters.targetFolder }}

- task: RegexReplace@3
displayName: RegEx Find & Replace
inputs:
InputSearchPattern: $(Build.SourcesDirectory)/${{ parameters.targetFolder }}/web.config
FindRegex: ${{ parameters.findRegex }}
ReplaceRegex: ${{ parameters.submoduleDir }}
UseUTF8: false
- script: |
sed -i 's/${{ parameters.findRegex }}/${{ parameters.submoduleDir }}/g' $(Build.SourcesDirectory)/${{ parameters.targetFolder }}/web.config
displayName: 'Update web.config file'
workingDirectory: ${{ parameters.workingDir }}
- task: PublishPipelineArtifact@1
displayName: Publish Artifact
Expand Down Expand Up @@ -169,7 +166,3 @@ steps:
inputs:
script: git push
workingDirectory: ${{ parameters.workingDir }}/igniteui-live-editing-samples/${{ parameters.submoduleDir }}

- task: PostBuildCleanup@4
displayName: Clean Agent Directories
condition: eq('${{ parameters.runCleanup }}', 'true')

0 comments on commit 3357a5d

Please sign in to comment.