Code:
// Task 3: Format Timestamp
println(Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", '2021-05-24T11:42:08.875Z').format('yyyyMMddHHmmss'));
println(Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSSX", '2021-05-24T11:42:08.875Z').format('yyyyMMddHHmmss'));
| steps: | |
| - task: PowerShell@2 | |
| displayName: Validate - Build branch is not behind master | |
| condition: or(eq(variables['Build.SourceBranchName'], 'develop'),startsWith(variables['Build.SourceBranchName'], 'release-'),startsWith(variables['Build.SourceBranchName'], 'bugfix-'),startsWith(variables['Build.SourceBranchName'], 'hotfix-')) | |
| inputs: | |
| targetType: 'inline' | |
| failOnStderr: true | |
| script: | | |
| $Uri = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_apis/git/repositories/$(Build.Repository.ID)/stats/branches?name=$(Build.SourceBranchName)&api-version=6.0" |
| ## License: MIT | |
| ## Configure Cloudhub and app details below | |
| $Username = '' # anypoint platform username | |
| $Password = 'abc123' # anypoint platform password | |
| $OrgId = '542aaff5-116n-433d-fd76-5a24zqfard19' # Anypoint Org ID | |
| $EnvName = 'DEV' # Cloudhub environment | |
| $AppName = 'example-app' # Application name | |
| ################################################################## |
Sample code below:
<db:stored-procedure doc:name="Call Stored procedure - myStoredProc"
doc:id="73d4a90e-29bf-4be1-8e91-5c61a536fe39"
config-ref="DB_Connection_Config_Ref">
<db:sql >{ call myStoredProc (:P_FIRST_NAME, :P_LAST_NAME) }</db:sql>
| # Node.js | |
| # Build a general Node.js project with npm. | |
| # Add steps that analyze code, save build artifacts, deploy, and more: | |
| # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript | |
| trigger: | |
| - master | |
| parameters: |
| %function asString(val) ( | |
| (val as :string) when val != null otherwise null | |
| ) | |
| %function asNum(val) ( | |
| (val as :number) when val != null otherwise null | |
| ) | |
| --- | |
| { |