Branch: refs/heads/CallRestApiReturnsJson Home: https://github.com/jenkinsci/electricflow-plugin Commit: 58a4f83931d398f79930b8a0e1d17f179bad65d2 https://github.com/jenkinsci/electricflow-plugin/commit/58a4f83931d398f79930b8a0e1d17f179bad65d2 Author: Urvashi Singh <usi...@cloudbees.com> Date: 2020-05-23 (Sat, 23 May 2020)
Changed paths: M src/main/java/org/jenkinsci/plugins/electricflow/CloudBeesFlowCallRestApiStep.java M src/main/java/org/jenkinsci/plugins/electricflow/utils/CallRestApiUtils.java Log Message: ----------- PoC for returning Flow API response in a pipeline task the result can be accessed using groovy path like this: ``` stage('Stage1') { def result = cloudBeesFlowCallRestApi body: '', configuration: 'cbp-demo', envVarNameForResult: '', httpMethod: 'GET', urlPath: '/projects/Default' def desc = result?.project?.description echo "Project Description: $desc" } ``` -- You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-commits/jenkinsci/electricflow-plugin/push/refs/heads/CallRestApiReturnsJson/000000-58a4f8%40github.com.