NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

The error message indicates that the retry interval in your YAML configuration is not properly defined. Specifically, the path pipeline.stages.invokelambdaforcr.spec.execution.steps.Create_ServiceNow_CR.failureStrategies has an issue with the retryInterval value.

Here’s how you can resolve this issue:

Check for Consistency in YAML: Ensure the YAML is correctly structured with proper indentation. YAML is sensitive to indentation, and even a small mistake can cause errors.

Correct the retryInterval Configuration: Ensure that the retryInterval under failureStrategies is defined correctly and not nested incorrectly. The proper way to define it is:

yaml
Copy code
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: Retry
spec:
retryCount: 3
retryInterval: 5m # This must not be null or empty
Check retryInterval Value Format: Ensure that the retryInterval value is a valid time format. The format 5m should be correct, but make sure there are no extra spaces or hidden characters.
Here is your corrected YAML code snippet:

yaml
Copy code
- stage:
name: invoke-lambda-for-cr
identifier: invokelambdaforcr
type: Custom
delegateSelectors:
- xxxxxxxxx
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: Retry
spec:
retryCount: 3
retryInterval: 5m # Ensure this is not null or empty
spec:
execution:
steps:
- step:
name: invoke-lambda-cr
identifier: Create_ServiceNow_CR
timeout: 15m
type: AwsLambdaDeploy
spec:
connectorRef: xxxxxxxxxxxxxxxxx
region: us-east-1
functionName: Onyx-servicenow
image: xxxxxxxxxxxx
payload:
content: |
{
"template_name": "IDT Onyx Service - Pipeline Account ODA Grant to Application Team Members",
"fields": {
"requested_by": "Cesar Ordonez",
"assigned_to": "Karthik Ramesh",
"u_conflict_justification": "No impact on critical services",
"business_service": "Investor Development Tools",
"description": "Allow new service to publish data",
"short_description": "Onyx Service Deployment",
"cmdb_ci": "Banzai",
"start_date": format_date(now),
"end_date": format_date(now + timedelta(days=1))
}
}
outputVariables:
- name: servicenow_change_request_id
value: SERVICENOW_CHANGE_REQUEST_ID
failureStrategies:
- onFailure:
errors:
- AllErrors
action:
type: Retry
spec:
retryCount: 3
retryInterval: 5m # Ensure this is not null or empty
Key Things to Verify:
Ensure Correct Indentation: YAML files are indentation-sensitive, and incorrect indentation can lead to parsing errors.
No Hidden Characters or Typos: Sometimes, copy-pasting can introduce hidden characters. Ensure there are no extra spaces or non-printable characters.
If the error persists after these changes, ensure that the retry interval value meets any specific constraints defined by the Harness pipeline syntax.









     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.