Open miRuslan opened 3 weeks ago
CREATE COMPUTE MODULE GetStatusRequest
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE requestCode CHARACTER InputRoot.HTTPInputHeader."requestCode";
DECLARE requestId CHARACTER InputRoot.HTTPInputHeader."requestId";
-- Настройка заголовков запроса
SET OutputRoot.HTTPRequestHeader."requestId" = requestId;
-- Формирование URL с параметрами
SET OutputLocalEnvironment.Destination.HTTP.QueryString = 'requestCode=' || requestCode;
RETURN TRUE;
END;
END MODULE;
name: $(Build.SourceBranchName)-1.0.$(Rev:r) trigger:
resources: repositories:
variables:
pool: $(pool)
steps:
checkout: self path: ./$(libName)/$(libName)
checkout: ConfserviceCommonRepository path: ./$(libName)/$(dependencyName)
task: Bash@3 displayName: 'Build bar file' inputs: targetType: 'inline' script: 'xvfb-run $(pathToBuilder) -data $(Agent.BuildDirectory)/$(libName) -b $(Build.ArtifactStagingDirectory)/$(libName)_$(ver).bar -a $(libName) -deployAsSource -cleanBuild -trace -v $(Build.ArtifactStagingDirectory)/traceOut.txt'
task: Bash@3 inputs: targetType: inline script: 'cd $(Build.ArtifactStagingDirectory) ; unzip $(Build.Repository.Name)_$(ver).bar -i $(Build.Repository.Name).appzip ; unzip $(Build.Repository.Name).appzip -i cryptoLib.libzip ; zip cryptoLib.libzip -d lib/jprovsfnt.jar ; zip cryptoLib.libzip -d lib/cryptoLibJava.jar ; zip $(Build.Repository.Name).appzip -u -i cryptoLib.libzip ; zip $(Build.Repository.Name)$(ver).bar -u -i $(Build.Repository.Name).appzip ; rm $(Build.Repository.Name).appzip ; mkdir -p drop mv $(Build.Repository.Name).appzip drop/ mv cryptoLib.libzip drop/'
task: PublishBuildArtifacts@1 inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)' ArtifactName: 'drop' publishLocation: 'Container'
`name: $(Build.SourceBranchName)-1.0.$(Rev:r) trigger:
resources: repositories:
variables:
pool: $(pool)
steps:
checkout: self path: ./$(libName)/$(libName)
checkout: ConfserviceCommonRepository path: ./$(libName)/$(dependencyName)
task: Bash@3 displayName: 'Build bar file' inputs: targetType: 'inline' script: 'xvfb-run $(pathToBuilder) -data $(Agent.BuildDirectory)/$(libName) -b $(Build.ArtifactStagingDirectory)/$(libName)_$(ver).bar -a $(libName) -deployAsSource -cleanBuild -trace -v $(Build.ArtifactStagingDirectory)/traceOut.txt'
task: Bash@3 inputs: targetType: inline script: | cd $(Build.ArtifactStagingDirectory) unzip $(Build.Repository.Name)_$(ver).bar -i $(Build.Repository.Name).appzip unzip $(Build.Repository.Name).appzip -i cryptoLib.libzip mkdir -p drop mv cryptoLib.libzip drop/ mv lib/jprov_sfnt.jar drop/ mv lib/cryptoLibJava.jar drop/
task: PublishBuildArtifacts@1 inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)/drop' ArtifactName: 'drop' publishLocation: 'Container'`
Link: Conversation with Ruslan
Customer: Ruslan Customer ID: user_123
Intercom Operator will send a note to this conversation when this issue is closed.