Skip to content

Commit

Permalink
Fix :The unicode of file will be converted to utf-8 bom in wondows pl…
Browse files Browse the repository at this point in the history
…atform (#93)

* The unicode of file will be converted to utf-8 bom in wondows platform

* add a line
  • Loading branch information
zhou9584 authored Oct 27, 2022
1 parent 80f92c0 commit d50b224
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions agent/src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#version schema
agent.version=0.0.0
agent.versionCode=1000000
10 changes: 0 additions & 10 deletions azure-pipelines-component-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,6 @@ stages:
command: 'custom'
workingDir: 'react'
customCommand: 'run pub'
- task: PowerShell@2
displayName: Set center/agent version
inputs:
targetType: 'inline'
script: |
$PSDefaultParameterValues['*:Encoding'] = 'utf8'
$hydraVersion = (((((Get-Content "common.gradle") -match "hydraLabVersion = '[0-9.]+'") -replace 'hydraLabVersion = ', '') -replace "'", "") -replace " ","")
(Get-Content agent/src/main/resources/version.properties) -Replace 'AGENT_VERSION', "$hydraVersion.$(Build.BuildId)"| Set-Content agent/src/main/resources/version.properties
(Get-Content center/src/main/resources/version.properties) -Replace 'CENTER_VERSION', "$hydraVersion.$(Build.BuildId)"| Set-Content center/src/main/resources/version.properties
workingDirectory: '$(Build.Repository.LocalPath)'
- task: Gradle@2
inputs:
gradleWrapperFile: 'gradlew'
Expand Down
1 change: 1 addition & 0 deletions center/src/main/resources/version.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#version schema
center.version=0.0.0
center.versionCode=1000000

0 comments on commit d50b224

Please sign in to comment.