Tomasz also responded to this question
<https://gitter.im/gocd/configrepo-plugins?at=5a699f7d5a9ebe4f75d0c8ba>
saying: "yes, that is a limitation. If you define a pipeline in yaml or
json, then you need to associate it with environment also using yaml or
json. Like in here
<https://github.com/tomzo/gocd-yaml-config-plugin#environment>".

The encryption API can indeed be used, as David said. I agree that we need
a way to ask GoCD for the latest commit it knows about for a specified repo.

On Wed, Jan 24, 2018 at 8:26 PM, David Rice <[email protected]> wrote:

> On encrypting values, does this help?
>
> https://api.gocd.org/current/#encryption
>
> On Thu, Jan 25, 2018 at 5:05 AM, Jeff <[email protected]> wrote:
>
>> A comment from me (a non-expert).  I'm using the JSON pipeline as code
>> plugin.  We ended up creating new environments in JSON, specifically for my
>> JSON pipelines.  I don't know if it is a feature or bug to not be able to
>> add  pipelines defined in YAML/JSON to XML-based environments defined via
>> the UI.
>>
>> I believe you can add config.xml pipelines to YAML/JSON-based
>> environments though, so you might be able to work around it that way.  In
>> my setup I can "edit" my JSON-based pipelines and add XML-based pipelines.
>> I didn't try actually running one though.
>>
>>
>> *FEATURE REQUEST (to the Go-CD folks):*
>>
>>    - Need a button in the UI to force the refresh of pipelines-as-code
>>    from the repositories.
>>       - After I check in changes, it's a pain to know how long to wait
>>       for the refresh before kicking off a pipeline, especially for updates 
>> to
>>       existing pipelines since you can't tell if the new steps were added 
>> until
>>       you actually run it again.  I've wasted many minutes kicking off a 
>> pipeline
>>       too early.
>>    - Need a way to encrypt secure environment variable values directly
>>    without editing a pipeline.
>>       - Today if I need to get the encrypted value, I have to create a
>>       temporary variable in an XML-based environment, edit the config.xml, 
>> copy
>>       out the encrypted value, and update the JSON then delete it from the
>>       environment.  It'd be nice to be able to just enter the value I want
>>       encrypted in a form via the UI and have it spit out the encrypted 
>> value to
>>       be copied.
>>
>> Good luck!
>>
>> On Tue, Jan 23, 2018 at 3:39 AM, Chi Thu Le <[email protected]> wrote:
>>
>>> Hi
>>>
>>> I am using gocd-yaml-config-plugin to create pipelines.
>>> https://github.com/tomzo/gocd-yaml-config-plugin
>>>
>>> I want to set some variables to be used by pipelines created by yaml
>>> config. But when I create a new global environment, I can not see my
>>> pipelines created by yaml config plugin and therefore not able to add them
>>> to the environment.
>>>
>>> Please comment and provide me any suggestion.
>>>
>>> Chi Thu Le
>>>
>>> Pipelines as code.
>>>
>>> https://docs.gocd.org/current/advanced_usage/pipelines_as_code.html
>>>
>>> --
>>> 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 [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> 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 [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to