Closed lewandowskim1988 closed 11 months ago
Hi @lewandowskim1988,
Because of the SECURITY-170, the job must explicitly define the parameters to used in the job.
Did you explicitly define sqs_test parameter?
@sopeal I'm experiencing the same behavior. I did configure the parameter explicitly, yet I don't get it as a job parameter.
Are the message attribute params should be configured as string as well? (in case they're defined as string of course).
I can send my message as json and parse it as a WA, but it would have been nicer to have attributes working
+1 same here, setup and trigger itself is straight forward, passing parameters doesn't work as expected.
You need to ".withMessageAttributeNames("All");" to https://github.com/jenkinsci/aws-sqs-trigger-plugin/blob/eb3a98f05c65f1f6950064fc8162dc131f91f7fe/src/main/java/io/jenkins/plugins/sqs/SqsPollerImpl.java#L73
Thank you @serbaniuliuscezar! Adding this parameter resolved my problem with receiving parameters.
Jenkins and plugins versions report
Jenkins: 2.375.1 OS: Linux - 5.15.0-30-generic
What Operating System are you using (both controller, and any agents involved in the problem)?
Linux
Reproduction steps
send-message.json
sqs_test
frommessage attributes
Expected Results
Job should receive parameter
sqs_test
with valuetest
Actual Results
Looks like message attributes are not parsed properly
Anything else?
No response