jenkinsci / aws-codecommit-trigger-plugin

Jenkins plugin for triggering jobs with AWS CodeCommit repo updates
https://www.ribose.com
Apache License 2.0
6 stars 12 forks source link

UUID for pipeline config not available #49

Closed HenningL closed 5 years ago

HenningL commented 5 years ago

I want to make the plugin work in the pipeline with jenkinsfile: properties([pipelineTriggers([$class: "com.ribose.jenkins.plugin.awscodecommittrigger.SQSTrigger", queueUuid: "cant find it"]])])

The other aws-sqs plugin shows a uuid in the advanced section which is working but its triggering all jobs on that queue as mentioned in doc.

I cant find a queueUuid anywhere to configure the plugin correctly.

So, where can i find it?

HenningL commented 5 years ago

Ok, with the help of logs and reading the code i made it work.

queueUuid can be found in the ....SQSTrigger.xml inside the jenkins folder on the machine.

properties([$class: "com.ribose.jenkins.plugin.awscodecommittrigger.SQSTrigger", queueUuid: "from the plugin.xml", subscribeInternalScm:true]])])

Without the second param 'subscribeInternalScm' the plugin will not find configured scm.

Consider to put it in the docs. Consider to publish the queueUuid in jenkins-config-view after submitting queue config.

phuonghuynh commented 5 years ago

thanks @HenningL We will introduce pipeline syntax for easy use soon