Need help with Gauge framework

39 views
Skip to first unread message

s.saw...@gmail.com

unread,
Nov 2, 2021, 7:27:53 AM11/2/21
to go-cd
Is there a way to use CSV based on condition?

My scenario is as below:
i m using "Table" tab for csv
have same csv in 2 location but csv path need to take based on environment


Jason Smyth

unread,
Nov 2, 2021, 11:50:43 AM11/2/21
to go-cd
Hello,

Would using an Environment Variable work?

You could set the variable either in GoCD at the Environment or Pipeline level, or on the Agent itself.

Hope this helps,
Jason

Sunaina Awadhiya

unread,
Nov 8, 2021, 1:53:52 AM11/8/21
to go...@googlegroups.com
Hi Jason,

Thanks for response but i have tried adding "gauge_data_dir" in env java.properties file but i am getting parse error. could you please help.

--
You received this message because you are subscribed to a topic in the Google Groups "go-cd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-cd/VlUyIEjwCec/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/6d749a47-dbf3-46c6-9a5b-435135c95565n%40googlegroups.com.


--
Sunaina Awadhiya
Bangalore

Sriram Narayanan

unread,
Nov 8, 2021, 2:06:22 AM11/8/21
to go...@googlegroups.com
On Mon, Nov 8, 2021 at 2:53 PM Sunaina Awadhiya <s.saw...@gmail.com> wrote:
Hi Jason,

Thanks for response but i have tried adding "gauge_data_dir" in env java.properties file but i am getting parse error. could you please help.


Essentially, that doesn't use java.properties. You have the ability to specify a default environment properties, as well as per environment data directories.



 

On Tue, Nov 2, 2021 at 9:20 PM Jason Smyth <jsm...@scimarketview.com> wrote:
Hello,

Would using an Environment Variable work?

You could set the variable either in GoCD at the Environment or Pipeline level, or on the Agent itself.

Hope this helps,
Jason


On Tuesday, 2 November 2021 at 07:27:53 UTC-4 s.saw...@gmail.com wrote:
Is there a way to use CSV based on condition?

My scenario is as below:
i m using "Table" tab for csv
have same csv in 2 location but csv path need to take based on environment


--
You received this message because you are subscribed to a topic in the Google Groups "go-cd" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/go-cd/VlUyIEjwCec/unsubscribe.
To unsubscribe from this group and all its topics, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/6d749a47-dbf3-46c6-9a5b-435135c95565n%40googlegroups.com.


--
Sunaina Awadhiya
Bangalore

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/CA%2B7Tbj%2BS1wwdYDoQtqUsaPMmpNqBZbo4CK0OMtK%2BO6sKkT0q5Q%40mail.gmail.com.

Sunaina Awadhiya

unread,
Nov 8, 2021, 3:50:10 AM11/8/21
to go...@googlegroups.com
Hi Sriram,

I am following same https://docs.gauge.org/execution.html?os=macos&language=javascript&ide=vscode#configuring-table-data-per-environment doc but getting parse error.Below are the setting i have done:

1. Added below property in default.properties file
gauge_data_dir = /resources/q1unit

and rest of the path is given in spec file as q1unit is environment in my case which is changing.

Gauge is not able to find file and giving parse error.

Thanks and regards,
Sunaina






--
Sunaina Awadhiya
Bangalore
Reply all
Reply to author
Forward
0 new messages