Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

codefresh-run-dynamic without wait flag error #387

Open
kindaninja opened this issue Sep 13, 2021 · 0 comments
Open

codefresh-run-dynamic without wait flag error #387

kindaninja opened this issue Sep 13, 2021 · 0 comments

Comments

@kindaninja
Copy link

There seems to be a bug in the codefresh-run-dynamic step, in the case where you don't wait for the pipelines to finish. The pipelines are triggered as they should be, but the step fails with an error:

Executing command: python3 /codefresh-run-dynamic.py                                                                                      
Running pipelines...                                                                                                                      
                                                                                                                                          
codefresh run test/deploy1 --detach                                                                                                       
Started build https://g.codefresh.io/build/613f1202f755fb7679444a2b                                                                       
                                                                                                                                          
codefresh run test/deploy2 --detach                                                                                                       
Started build https://g.codefresh.io/build/613f12057f34fcca9c477aba

Traceback (most recent call last):                                                                                                        
  File "/codefresh-run-dynamic.py", line 315, in <module>                                                                                 
    main()                                                                                                                                
  File "/codefresh-run-dynamic.py", line 311, in main                                                                                     
    write_output_files(builds_started, success)                                                                                           
UnboundLocalError: local variable 'success' referenced before assignment                                                                  
Reading environment variable exporting file contents.

The variable success is only set with the wait flag, but used as a parameter for write_output_files() either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant