Re: [go-cd] [Feature request] API general pipeline status

2024-06-07 Thread 'Ashwanth Kumar' via go-cd
It is not possible because the definition of pipeline level status can vary
from one person to another.

For instance, the 2nd stage could be validation that I don't care much as
long as the 3rd stage is green (after manually approving it) and things
like that. Ideally you only want to check the status of the stage you're
interested in rather than the entire pipeline. This is how the pipeline
dependencies also work.

Hope this helps.

Thanks,


On Fri, Jun 7, 2024, 16:23 'Hans Dampf' via go-cd 
wrote:

> Hi,
>
> it would be great if the api request on
> /go/api/pipelines// would have a general pipeline
> status.
>
> The stage have one, but it would be alot easier to work with if the last
> status is access able on the toplevel. Currently, you have to parse all
> stages to get the pipeline status.
> Currently :
> {
> "name" : "Pipeline 1",
> "counter" : 2641,
> "label" : "2641",
> "natural_order" : 2641.0,
> "can_run" : true,
> "preparing_to_schedule" : false,
> "comment" : null,
> "scheduled_date" : 1717756828914,
> "build_cause" : {
> "trigger_message" : "User",
> "trigger_forced" : true,
> "approver" : "User",
> "material_revisions" : [ {
> "changed" : false,
> "material" : {
> ...
> },
> "modifications" : [ {
> ...
> } ]
> } ]
> },
> "stages" : [ {
> "result" : "Passed",
> "status" : "Passed",
> ...
> } ]
> }, {
> "result" : "Unknown",
> "status" : "Building",
> ...
> } ]
> } ]
> }
>
> Changed:
> Changed:
> {
> "name" : "Pipeline 1",
> >>> "status" : "Building", <
> "counter" : 2641,
> "label" : "2641",
> "natural_order" : 2641.0,
> "can_run" : true,
> "preparing_to_schedule" : false,
> "comment" : null,
> "scheduled_date" : 1717756828914,
> "build_cause" : {
> "trigger_message" : "User",
> "trigger_forced" : true,
> "approver" : "User",
> "material_revisions" : [ {
> "changed" : false,
> "material" : {
> ...
> },
> "modifications" : [ {
> ...
> } ]
> } ]
> },
> "stages" : [ {
> "result" : "Passed",
> "status" : "Passed",
> ...
> } ]
> }, {
> "result" : "Unknown",
> "status" : "Building",
> ...
> } ]
> } ]
> }
>
>
>
> Regards
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/031c7115-4290-40ff-8646-e9976b08fd6en%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzxHFe6NqEpFYMhSqPO5TZnFqfajfeA4K98-aA9h%3DXgSg%40mail.gmail.com.


Re: [go-cd] Wehbook notification plugin

2024-02-19 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I would be happy to provide the necessary support that's needed. Let's
connect offline. Sending you a message shortly.

Thanks,


On Mon, Feb 19, 2024, 18:16 Sylvain Fabre  wrote:

> Hi there !
>
> GoCD is a great tool, and we would like now to send Webhook notifications
> to our Mattermost server.
> It seems that this plugin
> https://github.com/getsentry/gocd-webhook-notification-plugin used to do
> the job, but it does not work anymore with latest GoCD releases.
>
> Do you know if there is another solution to push webhooks ? Is someone
> willing to update this plugin to the latest GoCD APIs  (sponsoring
> possible) ?
>
> Thanks !
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/f36cfd42-923e-44de-a5a6-68e12119bd5fn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cwd%2BUo7k8qGaUjdJYhDX7F0By6m1KQ74had1NqEXRfhAA%40mail.gmail.com.


Re: [go-cd] Re: GOCD Email server configuration

2023-11-22 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Can you please share the relevant gocd-server logs that would likely have
more information which is useful for debugging.

Thanks,

On Thu, 23 Nov 2023 at 11:25, Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

> ps:Before 2 month back im used the same that time its works that was
> installed by apt ubuntu package.Now we are using GOCD by docker.
>
> On Thursday, November 23, 2023 at 11:17:14 AM UTC+5:30 Vijayakumaran A.
> wrote:
>
>> Team,I was setting up an email server configuration with my smtp server
>> credentials but its throw error.my credentials are correct. Why am I having
>> this error ?
>>
>> There was an unknown error performing the operation. Possible reason (Not
>> Acceptable)
>>
>>
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/5d47e887-8e96-45c0-8e0f-0ab02706278an%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cymg0zf_-UdeeuabFcxsYKVKffdWPcmzeTYfUACVkVUMg%40mail.gmail.com.


Re: [go-cd] Kubernetes Elastic Agents - Pods can no longer be created

2023-10-26 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
A wild guess, anything changed on the service account side or a custom role
being added as part of the upgrade that is probably not allowing the gocd
plugin to create the pod?

Thanks,


On Thu, 26 Oct 2023 at 20:27, Kim Pham  wrote:

> Hi All,
>
> We recently began to encounter issues where pods were unable to be
> created.  Nothing has changed in terms of GoCD server, agent, and
> Kubernetes elastic agent plugin versions.  However, we did notice that the
> cluster went through an automatic upgrade and updated gke version to
> 1.24.14.  GoCD is able to see the node pools through the 'Status Report'
> button.
>
> When attempting to create an agent on those node pools, I do see a 500 in
> the plugin logs and gocd-server logs.  Attached are logs.
>
> I've tried updating GoCD and the plugins to latest release versions.  Our
> static agents that are running on older gke versions aren't having any
> issues.
>
> Has anyone encountered this?
>
> Thanks in advance.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/a6b8e99d-f415-4c18-b67d-e86c3df16733n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cw2cK5yt_r9e5r1sxD%2B%2B%2Bjkd3%3DFTQe51vKqb081MunU%3DQ%40mail.gmail.com.


Re: [go-cd] Enterprise Support for GoCD

2023-10-02 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Hello Gautam, if you're looking for some help with your migrations or
through your journey with GoCD within your organisation, I can help you.
Please feel free to contact me on my email.

Thanks,

On Mon, Oct 2, 2023, 20:17 Gowtham Ravipati 
wrote:

> Hello Chad,
> Thank you so much for the response.
>
> So, if we were to get some support in the process even setting up a Demo
> or any thing while Migration as well...
> Is there any Point of Contact / Vendor for such Support?
>
> Regards
> Gowtham Ravipati
>
> On Saturday, September 30, 2023 at 3:38:58 AM UTC-6 Chad Wilson wrote:
>
>> Hi Gowtham - To my knowledge there has been no change in this situation.
>>
>> -Chad
>>
>> On Wed, 27 Sept 2023, 23:50 Gowtham Ravipati, 
>> wrote:
>>
>>> Hello
>>>
>>> Is this still the case for GOCD? or are there any vendors or from
>>> Thoughtworks itself that would have some Enterprise/Premiums support?
>>>
>>> Regards
>>> Gowtham Ravipati
>>> Charter Communications
>>> On Tuesday, June 28, 2022 at 9:20:56 AM UTC-6 Sriram Narayanan wrote:
>>>
 On Tue, 28 Jun 2022 at 2:34 PM, 'Sarmistha Bhuyan' via go-cd <
 go...@googlegroups.com> wrote:

> Hi,  Thanks for the detail.


 Please write to me : sriramNRN at gmail


>
> On Monday, June 27, 2022 at 4:05:23 PM UTC+5:30 Chad Wilson wrote:
>
>> Hi there
>>
>> Thoughtworks no longer provides commercial support or an enterprise
>> offering around GoCD - this ended 18 months ago in December 2020 with the
>> closure of Thoughtworks Studios, and the open sourcing of all the
>> previously "commercial" add-ons/plugins for GoCD. See
>> https://groups.google.com/g/go-cd/c/EXwfvZZeLrM/m/ONU1fjwGCgAJ for
>> background context.
>>
>> From a development perspective, it is currently a fully open source
>> community project and personally I'm not aware of folks providing
>> commercial support for it, or otherwise sponsoring development. You may
>> want to take that into account for your evaluation.
>>
>> -Chad
>>
>> PS: *Sent from my personal perspective as a GoCD contributor in my
>> spare time - not to be taken as an official statement of Thoughtworks*
>> .
>>
>> On Mon, Jun 27, 2022 at 5:56 PM 'Sarmistha Bhuyan' via go-cd <
>> go...@googlegroups.com> wrote:
>>
>>> We are evaluating GoCD as a continuous delivery and release
>>> orchestration tool.
>>>
>>> We would like to connect and understand the enterprise offerings in
>>> terms of support and professional services. I tried to write
>>> *sup...@thoughtworks.com* but did not get any response.
>>>
>>> Any idea how and whom to contact for this?
>>>
>>> --
>>> 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/f1c56f07-8c09-4d9a-890b-2755bf9a8ed4n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/56ffb83a-7201-4a75-baf4-4e452e099fffn%40googlegroups.com
> 
> .
>
 --
>>> 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/89c568c8-30be-486d-9031-4361b08c6262n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/79cd994f-6a1f-4fa1-b708-2b563a284ac1n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop

Re: [go-cd] Unable to run Microsoft Upgrade assistant

2023-09-13 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Maybe try adding, "DOTNET_UPGRADEASSISTANT_TELEMETRY_OPTOUT" environment
variable to "1"?

Ref -
https://learn.microsoft.com/en-us/dotnet/core/porting/upgrade-assistant-telemetry?tabs=console#disclosure




On Wed, 13 Sept 2023 at 16:55, nitesh...@gmail.com 
wrote:

> Hi team,
>
> I am trying to run Microsoft upgrade assistant but its failing with below
> error
> Same command i am running through command prompt, it works as expected.
>
> i am running that it in non-interative mode so that microsoft upgrade
> assistant doesn't wait for user input on console. however running with GOCD
> task it still wait for user input and failing
>
> can you please help me with that
>
>
> [go] Task: cmd /c "upgrade-assistant.exe upgrade
> D:\Upgrade\GOPIPE\WEBAPP\SampleAPI\SampleEfAPI.csproj --operation Inplace
> --targetFramework net6.0 --non-interactive"
>
> Initializing and loading extensions...
> Telemetry
> Upgrade Assistant collects usage data in order to help us improve your
> experience. The data is collected by Microsoft and shared with the
> community.
> You can opt-out of telemetry by setting the
> DOTNET_UPGRADEASSISTANT_TELEMETRY_OPTOUT environment variable to '1' or
> 'true'
> using your favorite shell.
> Read more about Upgrade Assistant telemetry:
> https://aka.ms/upgrade-assistant-telemetry
> Read more about .NET CLI Tools telemetry:
> https://aka.ms/dotnet-cli-telemetry
> Press any key to continue...
> System.InvalidOperationException: Cannot read keys when either application
> does
> not have a console or when console input has been redirected. Try
> Console.Read.
> at System.ConsolePal.ReadKey(Boolean intercept)
> at
>
> Microsoft.UpgradeAssistant.Cli.Startup.FirstUseStartup.StartupAsync(Cancellation
> Token cancellationToken) in
>
> D:\a\_work\1\s\src\Experiments\UpgradeAssistant\cli\Startup\FirstUseStartup.cs:l
> ine 37
> at
>
> Microsoft.UpgradeAssistant.Cli.Flow.Steps.Upgrade.StartupFlowStep.ValidateUserIn
> putAsync(IFlowContext context, CancellationToken cancellationToken) in
>
> D:\a\_work\1\s\src\Experiments\UpgradeAssistant\cli\Flow\Steps\Startup\StartupFl
> owStep .cs:line 34
> at Spectre.Console.Flow.FlowRunner.RunAsync(CancellationToken
> cancellationToken) in
>
> D:\a\_work\1\s\src\Experiments\UpgradeAssistant\spectre.flow\Flow\FlowRunner.cs:
> line 83
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/007cd4c6-639a-430f-bf49-53d6649b22d5n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyUa7YbuSBB4gNjytKd%2BxccqXJy5cHVRMf2RUqJ9gv47Q%40mail.gmail.com.


Re: [go-cd] Pipeline behaviour

2023-09-12 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
That's how GoCD operates. Each stage is supposed to be an independent
entity and if you want to share files or any state, please expose them as
artifacts and fetch them.

If you want multiple things to run together, it is best to put them into a
single job or have multiple jobs run in parallel (assuming they're not
related to each other).

On Tue, 12 Sept 2023 at 15:07, Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

>
> Hi Team,we have multiple pipelines with multiple  stages.
>
> ex: I have one pipeline which is running every 1 minute and another
> pipeline which runs every 5 mins.in 2nd pipeline i have 5 stages but
> before running all my 5 stages in my agent are assigned to another pipeline
> (like after 2 stages are completed  agent not  assigned to 3rd stage inside
> agent go another pipeline )why this happens i wanted to all my stages
> executed then only agent assigned to another pipeline how to achieve this ?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/fb83f2b7-ec68-4a85-96b0-5da2aae13327n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzrPAQ37stwL7_hCKqWAxg-r%3DLpW5HJ9tS11cKTDP6QUg%40mail.gmail.com.


Re: [go-cd] Regarding docker elastic agent

2023-08-15 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I think you need to use a gocd-agent image that is baked from maven image.
The agent image when started should register with gocd server and have an
actual agent running. In your case the image is trying to run mvn command
on startup and exits quickly.

I can understand if you're new to this elastic agent setup on gocd this can
be confusing but hopefully this is a one time learning.

Thanks,

On Tue, Aug 15, 2023, 18:01 Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

> Hi Team,
>
> I have set up a docker elastic agent using docker plugin and created a
> cluster profile with one elastic profile using* maven:3.6.3-openjdk-11 *docker
> image.
>
> i have one pipeline with one stage build maven job,i wanted to perform
> just checkout the code and *mvn clean install* using elastic agent,and i
> wanted to save generted build artifact.i have given elastic agent profile
> ID in this job.when i run the pipeline it started created
> *maven:3.6.3-openjdk-11 *docker image after one sec the container status
> automatically exited.i don't know why.Can i need to change any other docker
> images are what steps i need to make this works. please anyone help me to
> build my pipeline.
>
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/04c54e9e-6926-4d25-9e3d-f121d4230920n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cy_7r1HT26n2%2BfQHG2mJoK-3eEgFXa5%3DmFW8boJi-e5mQ%40mail.gmail.com.


Re: [go-cd] Need help for setup pipeline

2023-08-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Usually "git pull" means you're pulling the latest changes from the server.
While for 90% of your case it might be right, but when you're using the
"git pull" method you are not leveraging GoCD's power to the full extent.
Also why you're not able to roll back the changes when you do "trigger with
options" on the deploy pipeline on GoCD. If you still want to use the "git
pull" method, you should be doing "git revert " on the repo
directly so every pipeline run will mimic a rollback / roll forward
depending on git repo and not based on GoCD. *You do not want to do that,
just to be clear.*

Another point worth mentioning is you don't need to run "go-agent" on the
server machine actually. You can have the GoCD server and agents on a
separate server and use tools like rsync / ftp / scp to copy the files from
the agent to the server location directly. This will also make sure you
don't accidentally run different agent when you trigger another pipeline
accidentally (which is the behaviour you're seeing). You can circumvent
this using "resources" on the agents but it feels like an overkill for your
described use-case.

Thanks,



On Wed, 9 Aug 2023 at 10:38, Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

> Thankyou so much.Yes the given yaml file go server and agent are in same
> machine.
>
> But I have multiple projects same like this I have another remote machine
> in that go-agent is running and which have same setup but different
> meteial.when trigger the pipeline,pipeline start running on this remote
> machine using resources.In this also ,meterial checkout this machine
> go-agent path. So  we need to copy thatagent home path project to our
> php project ? That remote machine also need to have double storage right ?
> And git pull is wrong method ?
>
>
>
> On Wed, 9 Aug 2023 at 10:12 AM, 'Ashwanth Kumar' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>> So just to confirm, you're running go-agent on the same machine where
>> your server is running? If yes (which seems to be the case based on the
>> YAML file), then the answer to your question is also "Yes".
>>
>> You need to copy the same set of files over again, it also means it will
>> take twice the space. Today it seems like from your YAML code you're
>> already fetching the artifact for the pipeline so you're already using
>> twice the storage space.
>>
>> Thanks,
>>
>>
>> On Wed, 9 Aug 2023 at 09:55, Vijayakumaran A. <
>> vijayakumara...@praniontech.com> wrote:
>>
>>> My php project has a huge size.material checked in go-agent home
>>> path(/usr/share/go-agent/).so everytime pipeline run we need to copy all my
>>> files/folder from go-agent home
>>> path(/usr/share/go-agent/lib/pipelines/pipeline name )  to my project
>>> directory (var/www/html).is this correct approach ? but does it need more
>>> storage.
>>> On Wednesday, August 9, 2023 at 9:40:15 AM UTC+5:30 Vijayakumaran A.
>>> wrote:
>>>
>>>> Hi thanks for the response,Here i have attached my pipeline code.
>>>>
>>>> On Wed, Aug 9, 2023 at 9:26 AM 'Ashwanth Kumar' via go-cd <
>>>> go...@googlegroups.com> wrote:
>>>>
>>>>> It's hard to debug why it is not reflecting without having the entire
>>>>> pipeline spec or a screenshot of all the tasks that happen. Having said
>>>>> that, based on your note it seems like you're doing `git pull` inside the
>>>>> stage which would defeat the purpose of pipeline materials / tasks. You
>>>>> should instead scp or ftp the contents of the php project to
>>>>> `/var/www/html` folder on the remote server for each run.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> On Wed, 9 Aug 2023 at 09:22, Vijayakumaran A. <
>>>>> vijayak...@praniontech.com> wrote:
>>>>>
>>>>>> Hi Team,
>>>>>>
>>>>>> I have one requirement, we have a php application,Whenever a
>>>>>> developer pushes their code to a repository, gocd automatically triggers
>>>>>> the pipeline and deploy the latest code to the php project directory.
>>>>>>
>>>>>> example :
>>>>>> php project dir : /var/ww/html
>>>>>>
>>>>>> Whenever pushes happen my pipeline triggers and deploy the changes to
>>>>>> the php project dir.
>>>>>>
>>>>>> I 

Re: [go-cd] Need help for setup pipeline

2023-08-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
So just to confirm, you're running go-agent on the same machine where your
server is running? If yes (which seems to be the case based on the YAML
file), then the answer to your question is also "Yes".

You need to copy the same set of files over again, it also means it will
take twice the space. Today it seems like from your YAML code you're
already fetching the artifact for the pipeline so you're already using
twice the storage space.

Thanks,


On Wed, 9 Aug 2023 at 09:55, Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

> My php project has a huge size.material checked in go-agent home
> path(/usr/share/go-agent/).so everytime pipeline run we need to copy all my
> files/folder from go-agent home
> path(/usr/share/go-agent/lib/pipelines/pipeline name )  to my project
> directory (var/www/html).is this correct approach ? but does it need more
> storage.
> On Wednesday, August 9, 2023 at 9:40:15 AM UTC+5:30 Vijayakumaran A. wrote:
>
>> Hi thanks for the response,Here i have attached my pipeline code.
>>
>> On Wed, Aug 9, 2023 at 9:26 AM 'Ashwanth Kumar' via go-cd <
>> go...@googlegroups.com> wrote:
>>
>>> It's hard to debug why it is not reflecting without having the entire
>>> pipeline spec or a screenshot of all the tasks that happen. Having said
>>> that, based on your note it seems like you're doing `git pull` inside the
>>> stage which would defeat the purpose of pipeline materials / tasks. You
>>> should instead scp or ftp the contents of the php project to
>>> `/var/www/html` folder on the remote server for each run.
>>>
>>> Thanks,
>>>
>>> On Wed, 9 Aug 2023 at 09:22, Vijayakumaran A. <
>>> vijayak...@praniontech.com> wrote:
>>>
>>>> Hi Team,
>>>>
>>>> I have one requirement, we have a php application,Whenever a developer
>>>> pushes their code to a repository, gocd automatically triggers the pipeline
>>>> and deploy the latest code to the php project directory.
>>>>
>>>> example :
>>>> php project dir : /var/ww/html
>>>>
>>>> Whenever pushes happen my pipeline triggers and deploy the changes to
>>>> the php project dir.
>>>>
>>>> I have set up one stage with one job
>>>> cd /var/www/html && git pull is working fine.But when i use trigger
>>>> with option to deploy the previous commit my previous changes are not
>>>> reflected to my php project directory.
>>>>
>>>> what is the step i need to make this work..im new to gocd please let me
>>>> know if i did any mistake or need to change anything.
>>>>
>>>> --
>>>> 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/cbd2d65b-8371-43e9-bf35-10c5482dc682n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/go-cd/cbd2d65b-8371-43e9-bf35-10c5482dc682n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>>
>>> Ashwanth Kumar / ashwanthkumar.in
>>>
>>> --
>>>
>> 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/xHSb78j0yeM/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/CAD9m7CzShfqy5GN9XXD0hSmw4Yh7FFZraOM1MXu-CBXqJNE95g%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/go-cd/CAD9m7CzShfqy5GN9XXD0hSmw4Yh7FFZraOM1MXu-CBXqJNE95g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>>
>> [image: Email Signature.png]
>>
>> *VIJAYAKUMARAN A *
>>
>> *Technical Operations Engineer *
>> +919788372454 <+91%2097883%2072454>
>>
>> *vijayakumara...@praniontech.com*
>>
>> http://www.praniontech.com
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/ad490b15-8f69-48c3-9dc8-a2bdb6a58450n%40googlegroups.com
> <https://groups.google.com/d/msgid/go-cd/ad490b15-8f69-48c3-9dc8-a2bdb6a58450n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxZqUyMDrBbx1U3mpn%3DQQW6%3DOqqWTwquEynRghxZYwPAw%40mail.gmail.com.


Re: [go-cd] Need help for setup pipeline

2023-08-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
It's hard to debug why it is not reflecting without having the entire
pipeline spec or a screenshot of all the tasks that happen. Having said
that, based on your note it seems like you're doing `git pull` inside the
stage which would defeat the purpose of pipeline materials / tasks. You
should instead scp or ftp the contents of the php project to
`/var/www/html` folder on the remote server for each run.

Thanks,

On Wed, 9 Aug 2023 at 09:22, Vijayakumaran A. <
vijayakumara...@praniontech.com> wrote:

> Hi Team,
>
> I have one requirement, we have a php application,Whenever a developer
> pushes their code to a repository, gocd automatically triggers the pipeline
> and deploy the latest code to the php project directory.
>
> example :
> php project dir : /var/ww/html
>
> Whenever pushes happen my pipeline triggers and deploy the changes to the
> php project dir.
>
> I have set up one stage with one job
> cd /var/www/html && git pull is working fine.But when i use trigger with
> option to deploy the previous commit my previous changes are not
> reflected to my php project directory.
>
> what is the step i need to make this work..im new to gocd please let me
> know if i did any mistake or need to change anything.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/cbd2d65b-8371-43e9-bf35-10c5482dc682n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzShfqy5GN9XXD0hSmw4Yh7FFZraOM1MXu-CBXqJNE95g%40mail.gmail.com.


Re: [go-cd] shouldn't required resources also be at the pipeline level?

2023-07-22 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Taking another stab after Chad at answering the following question,

> We have some pipelines that are given higher preferences for agent/build
resources.   Wanting to do a lot more of this, but it's tricky because
resources can only be defined at the job level (in the UI). Also we use
a lot of templates, so having resources at job level means we end up having
lots of alsomost identical templates that only vary by the resources used
(which somewhat defeats the point of the templates and the value of gocd in
this respect).

Since you are asking resource to be at a pipeline level, you can assign the
resource for every job within a template to be #{pipline_resource} (a
pipeline parameter) and set the value of pipeline_resource parameter at a
pipeline level so all the jobs now have the same resource and the value is
now essentially controlled at a pipeline level. This way you don't need
duplicate templates varying by job resources anymore. This is what Chad
meant when he said "You said you had many templates that varied only by the
"resources" field for jobs. If that is the stated problem then parameters
are a possible solution to remove duplication, no?"

Thanks,



On Sat, 22 Jul 2023 at 17:52, Joshua Franta  wrote:

>
> thanks ashwanth- we already use parameter a ton.
>
> i don't understand how a job could look at a parameter and force the job
> to a more capable agent.
> i can definitely have a job fail based on a pipeline level parameter, but
> obviously trying to keep everything green here.
>
> if you're sure it's possible, can you provide a bit more of an example?
>
> On Sat, Jul 22, 2023 at 7:08 AM 'Ashwanth Kumar' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>> Use Parameters.
>>
>> On Sat, Jul 22, 2023, 16:24 Josh  wrote:
>>
>>> QUESTION:
>>>
>>> Shouldn't we also be able to communicate a resource requirement at the
>>> pipeline level, and not just inside a single job?
>>>
>>> I get that it definately needs to be at the job level since that's the
>>> smallest unit of work and some machines can't execute certain tasks.
>>> But at the value-stream/pipeline/business level, you also want to be
>>> able to have some pipelines compiling on preferred resources, no?
>>>
>>>
>>> is there a better way to accomplish this?
>>> or perhaps this already is possible and i'm missing it.
>>> i looked closely at the config since sometimes you can do something
>>> simple that is not possible inside the UI, but I'm not seeing it.
>>>
>>> To restate use case:  We have some pipelines that are given higher
>>> preferences for agent/build resources.   Wanting to do a lot more of this,
>>> but it's tricky because resources can only be defined at the job level (in
>>> the UI). Also we use a lot of templates, so having resources at job
>>> level means we end up having lots of alsomost identical templates that only
>>> vary by the resources used (which somewhat defeats the point of the
>>> templates and the value of gocd in this respect).
>>>
>>> hoping there is a config hack or maybe i'm missinig something.
>>> also if this could be done in a plugin, any color there would be helpful
>>> (and i would make sure it's open sourced if need be).
>>>
>>> thx
>>>
>>> ps i keep using other ci/cd products and gocd is still one of the all
>>> around bests.
>>>
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/a9a4ba2c-b1c9-4202-9408-3e2566929b59n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/go-cd/a9a4ba2c-b1c9-4202-9408-3e2566929b59n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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/_j5JGmoA2kI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> go-cd+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/CAD9m7CxMqUNkCqyx5D5P4HMb0ocMVQYx__VDz1AYN%2B5ukovB3w%40mail.gmail.com
>> <https://groups.google

Re: [go-cd] shouldn't required resources also be at the pipeline level?

2023-07-22 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Use Parameters.

On Sat, Jul 22, 2023, 16:24 Josh  wrote:

> QUESTION:
>
> Shouldn't we also be able to communicate a resource requirement at the
> pipeline level, and not just inside a single job?
>
> I get that it definately needs to be at the job level since that's the
> smallest unit of work and some machines can't execute certain tasks.
> But at the value-stream/pipeline/business level, you also want to be able
> to have some pipelines compiling on preferred resources, no?
>
>
> is there a better way to accomplish this?
> or perhaps this already is possible and i'm missing it.
> i looked closely at the config since sometimes you can do something simple
> that is not possible inside the UI, but I'm not seeing it.
>
> To restate use case:  We have some pipelines that are given higher
> preferences for agent/build resources.   Wanting to do a lot more of this,
> but it's tricky because resources can only be defined at the job level (in
> the UI). Also we use a lot of templates, so having resources at job
> level means we end up having lots of alsomost identical templates that only
> vary by the resources used (which somewhat defeats the point of the
> templates and the value of gocd in this respect).
>
> hoping there is a config hack or maybe i'm missinig something.
> also if this could be done in a plugin, any color there would be helpful
> (and i would make sure it's open sourced if need be).
>
> thx
>
> ps i keep using other ci/cd products and gocd is still one of the all
> around bests.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/a9a4ba2c-b1c9-4202-9408-3e2566929b59n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxMqUNkCqyx5D5P4HMb0ocMVQYx__VDz1AYN%2B5ukovB3w%40mail.gmail.com.


Re: [go-cd] Need to run a command during deployment which persists after the agent is done

2023-06-16 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
May be use systemd or supervisord or monit to start your process?



On Fri, Jun 16, 2023, 22:48 Tsanko Stoev  wrote:

> Hello All,
>
> I wanted to see if there is a way to solve an issue we are having today.
> We have a deployment that runs several commands. At the end of the
> deployment we run a command that starts a service. We noticed that the
> command is launched as a subprocess of the agent connection, which results
> in that subprocess being killed once the agent is done deploying. Is there
> a way to run a job command that persists after the deployment is done.
> I hope my explanation made sense.
> Thanks.
>
> Sincerely,
> Tsanko Stoev
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAGWsXCDU57CNqbkiJ8vimsdaxRPXssFHbf6jjPEC_55j7_LnJA%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzBmv1Z%2B%3D4J2fo2%2BrxxBAhzwbUVg%2B0N7xSBvxORy74irQ%40mail.gmail.com.


Re: [go-cd] Optimizing Plugin Loading Time in GoCD Server

2023-05-22 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
It shouldn't be taking 2 hours to load all the plugins. You sure it's the
plugin startup that's taking the long time and not something else like the
number of pipelines or cron or even a slow disk?

Thanks,


On Mon, 22 May 2023 at 13:52, pradeep devaraj 
wrote:

> Hi All,
>
> I have 18 plugins in my GoCD server. When I restart the GoCD service, it
> takes two hours to load all the plugins. Please suggest ways to reduce the
> waiting time.
>
> *Regards*
> Pradeepa D
> 8951888163
> pradee.dev@gmail.com
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/444dfa00-5c1f-4ef8-929a-e699edd84d42n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwTtZe9RUYG%2B3E%3DB8X5VfAwP7BMFYwRFGDPbHC8WQ8MNA%40mail.gmail.com.


Re: [go-cd] Checkout sources into the top level pipelie folder

2023-03-25 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I wouldn't recommend gocd does it automatically because think of 2
pipelines running simultaneously with a different SCM commit of the same
material, the result would be undefined and not reliable from CD principles.

A better approach would be to expose the repo as an artifact from a
pipeline and just download that in all downstream pipelines. To keep the
server disk usage in control may be run that pipeline manually on demand
and have something gocd-janitor to make sure you've only last few versions.

On Sat, Mar 25, 2023, 19:05 'Alexey Savchkov' via go-cd <
go-cd@googlegroups.com> wrote:

> I have a large (a few GB) Git repository which is used in N pipelines.
> This results in the repository being checked out N times for each pipeline
> which in turn occupies a lot of disk space on the agent. Therefore I would
> like to reuse the repository between pipelines. Is there a way to specify
> an SCM destination path starting from the top level pipelie folder
> (/var/lib/go-agent/pipelines) rather than
> /var/lib/go-agent/pipelines/? Specifying destination = '..'
> in the material properties is intentionally prohibited and doesn;t pass the
> validation check.
> Currently I'm thinking of using symlinks but having an option to set this
> in GoCD in the first place would be much cleaner and reliable.
>
> Many thanks.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/68d12835-d845-46bd-b047-e5b7aacb9256n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyjoQpNXaGWiz-2Rfp8Jp0kCMeA1w0_BqqZzZ%2BrUZ%3DDsA%40mail.gmail.com.


Re: [go-cd] Email Settings - multiple receivers

2023-03-17 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Usually SMTP uses comma. Does that not work for you?

On Fri, Mar 17, 2023, 20:26 Ertan Küçükoglu 
wrote:

> Hello,
>
> I would like to define two email addresses for the Administrator Email.
> There is below text on the page, but not specific separator mentioned.
>
> "One or more email address of GoCD system administrators. This email will
> be notified if the server runs out of disk space, or if backups fail."
>
> I also checked documentation and could not find information about defining
> multiple email addresses.
>
> So far I have tried and failed using: comma, semi colon, space
>
> Does GoCD support multiple admin email addresses?
>
> Thanks & Regards,
> Ertan
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/34192e6c-3e41-4a49-aa22-dc5c5ebe3616n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cy-VTpce5SndaN5-7VAb81BNRGLprOiPg%3D6B1Dvc0S1kQ%40mail.gmail.com.


Re: [go-cd] Force pipeline material to run

2023-03-16 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
If "update" is an application (I am reading it as a shared library) that is
needed by other downstream systems, then your current design makes sense.
Having said that, why would you want to re-trigger a new run of "update"
for each new run of the downstream system(s)? That part doesn't make sense,
because if this "update" needs to be triggered for each "app-N" system(s)
then it's not really a shared library but a configuration repository or a
deployment script that every downstream system needs isn't?

If you still want to make sure you always take the latest changes of
"update" may be run the pipeline on Timer (may be every 1 hour or 15
minutes) depending on how soon the changes you want. Yes it's wasteful of
resources, but so is manually automating the workflow by modelling the
pipelines this way. I would ask myself which of the following would I
be using 80%+ of the time:

   1. A fully automated setup for building and deploying each application
   (Assuming each service owner would be able to manage that on the long run)
   2. Modifying the build parameters of "update" frequently

Thanks,


On Fri, 17 Mar 2023 at 02:11, Ertan Küçükoglu 
wrote:

> Thanks for your reply.
>
> I have "update" as an application which used in several more applications
> other than "app1" so I wanted to have it as a separate build of its own.
> Since I will be manually triggering builds, I also wanted it to build from
> scratch by getting sources and everything.
>
> If I reverse my design, "update" will be linked to multiple pipelines
> (which will be other applications in my case). Having them all linked will
> also mean that I will be triggering all other applications' builds as I
> must first run "update" and it will run other linked pipelines. This would
> be something I do not want.
>
> Maybe, I should add "update" as another build stage. But, I need to
> manually add stages to each pipeline where it is used. If I need to change
> a build parameter later, I have to manually modify all relevant stages
> where it is used. This was something I wanted to prevent by having a
> separate pipeline for "update".
>
> I need to think about it.
>
> Regards,
> Ertan
>
> 16 Mart 2023 Perşembe tarihinde saat 23:18:13 UTC+3 itibarıyla
> ashwant...@gmail.com şunları yazdı:
>
>> GoCD can't trigger upstream pipelines by design.
>>
>> The artifacts should ideally flow downwards (eg: from build -> dev ->
>> staging -> prod) and not the other way around. You can set up pipelines
>> such that if you trigger Pipeline 1 and it passes, it can trigger Pipeline
>> 2 and so on.
>>
>> In your case if you've update1 as a dependency of app1, why not have them
>> in a single pipeline as 2 stages where you run update in the first stage
>> and app1 in the second?
>>
>> Thanks,
>>
>>
>> On Fri, 17 Mar 2023 at 01:12, Ertan Küçükoglu 
>> wrote:
>>
>>> Hello,
>>>
>>> I am *very* new to GoCD. Just set it up today in a couple hours ago.
>>>
>>> I always would like to trigger all my pipelines manually. There are some
>>> pipelines that I would like them to run after another pipeline. For
>>> example, There is an "update" application which is in a subversion
>>> repository. There is also "app1" application in another subversion
>>> repository.
>>>
>>> My main purpose is to build "app1" but it also needs "update" so I would
>>> like "update" pipeline to run automatically from scratch whenever I trigger
>>> "app1".
>>>
>>> I setup myself single group and two pipelines in it as follows.
>>> Pipeline1 "update"
>>> Pipeline2 "app1"
>>>
>>> Pipeline2 has Pipeline1-BuildStage linked in its material tab.
>>>
>>> When I run Pipeline2, I would like to force run Pipeline1 completely.
>>> What I mean by "completely" is as if I manually triggered pipeline1 run
>>> button on the dashboard.
>>>
>>> I could not do that for now.
>>>
>>> I think GoCD check Pipeline1 and see it is built successful and it is
>>> set to manual triggering and does not run it at all.
>>>
>>> I read documents and made some google searches, but no luck. I believe I
>>> am missing something.
>>>
>>> Any help is appreciated.
>>>
>>> Thanks & Regards,
>>> Ertan
>>>
>>> --
>>> 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/d4dc059a-c025-4574-b288-f6feeef47bb6n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.go

Re: [go-cd] Force pipeline material to run

2023-03-16 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
GoCD can't trigger upstream pipelines by design.

The artifacts should ideally flow downwards (eg: from build -> dev ->
staging -> prod) and not the other way around. You can set up pipelines
such that if you trigger Pipeline 1 and it passes, it can trigger Pipeline
2 and so on.

In your case if you've update1 as a dependency of app1, why not have them
in a single pipeline as 2 stages where you run update in the first stage
and app1 in the second?

Thanks,


On Fri, 17 Mar 2023 at 01:12, Ertan Küçükoglu 
wrote:

> Hello,
>
> I am *very* new to GoCD. Just set it up today in a couple hours ago.
>
> I always would like to trigger all my pipelines manually. There are some
> pipelines that I would like them to run after another pipeline. For
> example, There is an "update" application which is in a subversion
> repository. There is also "app1" application in another subversion
> repository.
>
> My main purpose is to build "app1" but it also needs "update" so I would
> like "update" pipeline to run automatically from scratch whenever I trigger
> "app1".
>
> I setup myself single group and two pipelines in it as follows.
> Pipeline1 "update"
> Pipeline2 "app1"
>
> Pipeline2 has Pipeline1-BuildStage linked in its material tab.
>
> When I run Pipeline2, I would like to force run Pipeline1 completely. What
> I mean by "completely" is as if I manually triggered pipeline1 run button
> on the dashboard.
>
> I could not do that for now.
>
> I think GoCD check Pipeline1 and see it is built successful and it is set
> to manual triggering and does not run it at all.
>
> I read documents and made some google searches, but no luck. I believe I
> am missing something.
>
> Any help is appreciated.
>
> Thanks & Regards,
> Ertan
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/d4dc059a-c025-4574-b288-f6feeef47bb6n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx9YyLffy2V2uZE4ajYv-oJ-8YwVdAUuY8r-B4DivaRuw%40mail.gmail.com.


Re: [go-cd] GoCD is slow, several git processes are running with high cpu usage

2023-01-11 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Can you check the avg. disk io on the machine?  Something like:

$ iostat -k 2

Also are you using SSDs or HDDs on the GoCD Server? If you're using HDDs
see if you can run the same setup on SSDs to see if there is a difference.

Thanks,


On Wed, 11 Jan 2023 at 12:28, Brandon V  wrote:

> Hi all,
>
> Our GoCD server is acting slow. We have >1000 pipelines that trigger
> automatically on updates to various branches of a Git repository. For each
> branch that needs to be picked up by GoCD, we have a distinct git material
> with shallow clone set to true. The time to trigger from Git updates is
> quite slow. The UI is also a bit sluggish in general.
>
> Environment info:
> Linux
> GoCD server 21.1.0
> PostgreSQL 12.8 database
>
> The server was recently recreated updating the OS from Ubuntu 16.04 to
> Ubuntu 20.04. The most important pieces of configuration were restored from
> the previous server. However, it's possible some configuration was lost, or
> some package version was changed, or something like that. I'd appreciate
> any pointers.
>
> While trying to debug this, I noticed a few things:
>
> CPU utilization on the machine is hovering around 60%, when there are no
> jobs running.
>
> The top consumers of CPU on the machine are git commands run by the GoCD
> server. At any given time there are about 8 instances of git processes like
> "git branch -r --contains ". Each of these git commands can be
> using a whole CPU.
>
> Looking at things related to git, I noticed:
>
> The GoCD server logs in /var/log/go-server/go-server.log have a lot these
> messages (referencing the different deployment branches):
>
> 2023-01-11 06:44:04,168 WARN  [ThreadPoolTaskScheduler-7]
> MaterialUpdateService:204 - [Material Update] Skipping update of material
> GitMaterial{url=g...@github.com:repo/app.git, branch='abranch',
> shallowClone=true, submoduleFolder='null'} which has been in-progress since
> Wed Jan 11 06:43:04 UTC 2023
>
> Using jstack to get thread dumps from the server, this seems to be the
> java stack trace where those git processes are launched:
>
> "130@MessageListener for MaterialUpdateListener" #130 daemon prio=5
> os_prio=0 cpu=14618.25ms elapsed=100474.11s tid=0x7fa2ded9dca0
> nid=0xea6f in Object.wait()  [0x7fa20c5ad000]
>java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(java.base@15.0.1/Native Method)
> - waiting on 
> at java.lang.Object.wait(java.base@15.0.1/Unknown Source)
> at java.lang.ProcessImpl.waitFor(java.base@15.0.1/Unknown Source)
> - locked <0x0005370e58e0> (a java.lang.ProcessImpl)
> at
> com.thoughtworks.go.util.ProcessWrapper.waitForExit(ProcessWrapper.java:54)
> at
> com.thoughtworks.go.util.command.CommandLine.runOrBomb(CommandLine.java:354)
> at
> com.thoughtworks.go.util.command.CommandLine.runOrBomb(CommandLine.java:378)
> at
> com.thoughtworks.go.domain.materials.SCMCommand.runOrBomb(SCMCommand.java:38)
> at
> com.thoughtworks.go.domain.materials.git.GitCommand.containsRevisionInBranch(GitCommand.java:364)
> at
> com.thoughtworks.go.config.materials.git.GitMaterial.modificationsSince(GitMaterial.java:132)
> at
> com.thoughtworks.go.server.service.materials.GitPoller.modificationsSince(GitPoller.java:35)
> at
> com.thoughtworks.go.server.service.materials.GitPoller.modificationsSince(GitPoller.java:26)
> at
> com.thoughtworks.go.server.service.MaterialService.modificationsSince(MaterialService.java:134)
> at
> com.thoughtworks.go.server.materials.ScmMaterialUpdater.insertLatestOrNewModifications(ScmMaterialUpdater.java:56)
> at
> com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.insertLatestOrNewModifications(MaterialDatabaseUpdater.java:157)
> at
> com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.updateMaterialWithNewRevisions(MaterialDatabaseUpdater.java:149)
> at
> com.thoughtworks.go.server.materials.MaterialDatabaseUpdater$2.doInTransaction(MaterialDatabaseUpdater.java:108)
> at
> com.thoughtworks.go.server.transaction.TransactionCallback.doWithExceptionHandling(TransactionCallback.java:23)
> at
> com.thoughtworks.go.server.transaction.TransactionTemplate.lambda$executeWithExceptionHandling$2(TransactionTemplate.java:43)
> at
> com.thoughtworks.go.server.transaction.TransactionTemplate$$Lambda$1842/0x0008045df9c8.doInTransaction(Unknown
> Source)
> at
> org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
> at
> com.thoughtworks.go.server.transaction.TransactionTemplate.executeWithExceptionHandling(TransactionTemplate.java:40)
> at
> com.thoughtworks.go.server.materials.MaterialDatabaseUpdater.updateMaterial(MaterialDatabaseUpdater.java:105)
> - locked <0x000537f34488> (a java.lang.String)
> at
> com.thoughtworks.go.server.materials.MaterialUpdateListene

Re: [go-cd] How to aggregate the artifacts of a build matrix

2023-01-06 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Under ideal conditions, I would assume a test failure means the report
would either be incomplete or not useful isn't it?

AFAIK there isn't a post-build job for a stage, you can do it at a job
level though using "Run If" Attribute of the tasks. Here are a few ways to
get what you need, it might range from ugly to "Oh, that's interesting". If
you do decide to choose these methods please drop a line so I know if it
was useful :-)

*Option 1*:
Assuming you can tell from the reports if a test has failed or not, you
just have a dummy task after the tests that runs on runif="any" and do the
aggregation on the next stage. If you know from the reports something has
failed you can always fail the aggregate stage with some useful
information.
*Cons*: The failure will not immediately tell you what failed but again if
the folks who need to view the error have access to GoCD logs they can
always view the error and take necessary actions.

*Option 2:*
Very similar to Option 1, but if you can't tell from the reports if a test
has failed then you can emit an artifact that says if a test has failed or
not and then do the same in the aggregate stage to parse these artifacts
and then decide to fail the stage.
*Cons*: If the previous option wasn't ugly enough, this definitely feels
that way for me.

*Option 3:*
Have a separate stage after the tests that does the aggregation, instead of
doing all the gymnastics with artifacts or run if attributes, you can write
a notification plugin that listens to *only failure* events of this stage
and then manually trigger the next stage.
*Cons*: Effort to writing to a plugin and maintaining it. Let me know if
you are comfortable contributing this to the gocd-slack-notifier
 plugin. Happy
to collaborate on this if required too.

Thanks,


On Fri, 6 Jan 2023 at 18:54, 'Alexey Savchkov' via go-cd <
go-cd@googlegroups.com> wrote:

> I'm stuck with a problem which I can't think of a good solution for so
> would like to know your thoughts on the subject.
> One stage of my pipeline is a test matrix consisting of 6 jobs. Each job
> produces an Allure test report. Now I need to collect these individual test
> reports and build an aggregate one from them. Normally I would do it in
> some kind of a post-build job running at the end of each stage or the
> entire pipeline. But as far as I see there are no such post-build jobs in
> GoCD. I also can't use a separate stage for this since it won't start if
> the test stage fails due to failed tests. The only possibility I see is to
> start a dedicated job (say, "Report") in the test stage together with the
> test jobs, make it continuously poll the states of the test jobs and when
> all of them are completed fetch their report artifacts and build the total
> report. Wasting of runners when they are just waiting for the test jobs to
> finish but still acceptable.
> Am I not missing anything very basic as to how to go about such cases in
> GoCD? What would you propose? An external storage (Nexus) is available if
> this matters.
>
> Thank you very much in advance.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/d70ab788-59d1-45d3-a088-77b97b3fe309n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxNguDpOnjw6ADXYWkVmJFgf9dr6T66qdZsOFFHpA1jfw%40mail.gmail.com.


Re: [go-cd] GOCD API to Search Pipelines

2022-12-28 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Short answer: No

You can use the 'Get all Pipelines
' API to get the whole
list of pipelines (in memory or disk) and then implement a prefix search or
a lookup on your end.

Curious though, is the list of pipelines so large that you need a search
api for them or is there an another reason?

Thanks,


On Wed, 28 Dec 2022 at 09:55, Yash Khandelwal 
wrote:

> Hi All,
>
> I am working on a project which has requirement to fetch the GOCD
> pipelines starting with some string ex: test_pipelines*, does gocd have any
> such API?
>
> Thanks.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/14b50f03-bdcd-4248-b673-40507d8abb6cn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cxzf0ty9ybDhd0AgT0R%2BmmHeXfsipzat-qPhv1LpBL5HA%40mail.gmail.com.


Re: [go-cd] Running additional stages in a pipeline utilizing a template.

2022-11-17 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
You can do this using by cloning the existing template and adding the
required stages.

Thanks,

On Thu, Nov 17, 2022, 05:51 Drew  wrote:

> Hi all,
>
> I'm wondering if it is possible to add an additional stage in addition to
> a template for a pipeline? I want one particular pipeline using a given
> template to create a build artifact that's not relevant to any other
> pipelines using this template and wanted to avoid a new one/modifying the
> existing one just for this case. Is this something thats possible or will I
> need to work around this template?
>
> Thanks,
> Drew
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/1112b3d6-5f79-448b-ac2f-16e5039d9357n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cz-4ZD45zCYAENWM0C5L2UfZJ9chNweawzf%2BYFOd0mhQA%40mail.gmail.com.


Re: [go-cd] How to Print Secure Variable Value In console

2022-11-09 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
It is by design GoCD does not print secure variables in the console. It is
no longer secure if folks can just env on the command to see the variables.
The value will be passed correctly to the program.

You shouldn't try to print the variable in stdout/stderr, if you must
absolutely check the value try writing it to a file and login to the
machine and verify the contents.

Thanks,


On Wed, 9 Nov 2022 at 17:06, Nayan Makwana 
wrote:

> Hello Folks,
>
> I am trying to Print secure variable values in the console using my
> customer plugin but rather than AEC or any clear data I got only *
> value please help me let me know how to print the secure variable values in
> the console.
>
> Thank you in advance
>
> Regards
> Nayan Makwana
>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/b81099f2-2b02-4aaf-a95c-1a0c18bf4150n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Czu-_zDYxBfNQFWF4jvtwHdbVbjXqo4BtsaNNbHqG9M9A%40mail.gmail.com.


Re: [go-cd] Need help in resolving few issues with GoCD 20.4

2022-11-02 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
>From the attached screenshot the error seems like something to do with a
network configuration.

> kex_exchange_identification: read: Connection reset by peer

First answer on SO  also says the
same. Also if you can check the go-server.log, it might have additional
details which might be useful to debug as well. See if you can share those
after masking any sensitive details.

>From the GoCD Docs
, the
config.git is not pushed by GoCD to a remote. We usually have a cron that
runs on the server machine that periodically does a `git push`. Do you know
how you were doing this with v18.x series earlier?

Thanks,


On Wed, 2 Nov 2022 at 15:30, SATYA R  wrote:

> Hi Everyone,
>
> Recently our GoCD 18.8 server got destroyed and we installed new version
> of GoCD 20.4 in new mac server and restored the backup of 18.8.
> We are able to get all the pipelines back and running. But we are facing
> few issues with the new server.
>
> 1. The pipelines Auto-trigger is not happening immediately, it is taking
> lot of time to get auto-triggered. And whenever we do test connection in
> materials it always  fails with an error. PFA after many refreshes we get
> "OK" connection message.
> 2. Sometimes even when we try to trigger the pipelines manually, they
> don't run, after so many refreshes they run, we have to hit run button
> multiple times to make them run.
> 3. After our old GoCD18.8 is crashed, the config.xml changes are not
> getting committed to GoConfig.git repo in GitLab.
>
> Kindly help us resolving the above issues.
>
> Thanks,
> Srikala Rekapalli.
> DevOps.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/0f7f723b-23bd-416c-a9e1-ec585dcb7a38n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxVb%2BPr%3DW1R6AkpUQi%3DSCtud-%2BHAbicNwx5T4bqdp0GvQ%40mail.gmail.com.


Re: [go-cd] Long running GoCD Pipeline

2022-10-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
GoCD supports a job timeout
 the stage
after x minutes of inactivity.

Now even after explicitly cancelling the stage you see the above error, you
might want to look into the go-server logs to see if there are any errors /
stack traces when you attempt to cancel it. I have seen a similar issue
happen due to a H2 db corruption. Sharing such logs after removing any
sensitive data might shed some light on the whole process.

Thanks,


On Tue, 18 Oct 2022 at 21:37, Binoy Shah  wrote:

> Hi All,
>
> We are using GoCD for our CI/CD tool, we have a problem where one of the
> pipeline stage is running for a long time and we're unable to cancel it or
> stop it.
>
> Because of that, it's not allowing any future stages to be created. While
> re-running it says, previous stage execution is still in progress.
>
> Is there any way to resolve such issue?
>
> Regards,
> Binoy
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/2c73ab3e-048f-4db1-bee2-4005cd278a68n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cz-3Cg_bgTR9UcropsH%3DNm73QVyZQRybNW5XbEUoQz-2g%40mail.gmail.com.


Re: [go-cd] Gocd backup error

2022-09-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Can you check disk space usage where `serverBackups` exist?

Thanks,


On Fri, 9 Sept 2022 at 00:10, VIjay  wrote:

> Hi,
> I am trying to perform gocd-server backup.
> My gocd-server version is - 18.10.0
>
> when hit perform back up  I am seeing below error-
> Failed to perform backup. Reason: Could not create the backup directory.
>
> *when i run below command on server - *
>  ls ${ARTIFACT_REPOSITORY_LOCATION}
> I can see *serverBackups *directory exists but shows in *red*.
>
> Any idea how can we fix this?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/2ed51cbe-3653-4460-84ae-2badb8e49cb0n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx%2BEg4EgBdTo1cdS5q%2B7SHaczwvsEDj3N50gKztbjskRA%40mail.gmail.com.


Re: [go-cd] Setting up a test server

2022-07-31 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Maybe using GoCD's backup and restore may be?

Ref -
https://docs.gocd.org/current/advanced_usage/one_click_backup.html#restoring-gocd-using-backup

Thanks,



On Sun, 31 Jul 2022 at 21:27, Tim Stevens  wrote:

> Hello, I would like to setup a test server with GoCD installed, but using
> a copy of the production database.  Anybody know if there is a way to
> export the data from the production database and import it into the test
> database?
>
> Thanks in advance!
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/cf1d7e99-3e3f-4487-b669-c50faf522aacn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CySJB9mkAzED1DbpoAdxbBsR%3DHKnkydzgggib2XqijFxg%40mail.gmail.com.


Re: [go-cd] How Can we Integrate Jira ?

2022-07-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Environment variables are usually at a pipeline level, if you want it
accessible to more than 1 pipeline, you want to have all the related
pipelines inside an environment and define env vars at an environment level
in GoCD.

Thanks,


On Sat, 30 Jul 2022 at 12:01, Nayan Makwana 
wrote:

> yes I wan to send notification based on ticket raised. we will try to
> achieve that using gocd plugin. i ask to my team for make suck kind of
> plugin for further use.
>
> one more question from my side
> Can I define environment variable for in first pipeline and use  in rest
> of all pipes it is possible ??
>
> and thank you for helping Ashwanth Kuma
>
>
> On Saturday, July 30, 2022 at 10:38:43 AM UTC+5:30 ashwant...@gmail.com
> wrote:
>
>> AFAIK there isn't any plugin for JIRA notifications at the moment in
>> GoCD. You might want to write a notification plugin for this.
>>
>> Just curious though, Would the notifications be sent based on the ticket
>> that's in the commit message?
>>
>> Thanks,
>>
>> On Sat, 30 Jul 2022 at 10:27, Nayan Makwana 
>> wrote:
>>
>>> I want to integrate Jira for notification as comment in raised ticket by
>>> another user so he/she will know which stage or pipeline is running and it
>>> failed or pass...
>>>
>>>
>>> Regards
>>> Nayan Makwana
>>>
>>> --
>>> 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/0d453730-56f5-49fb-99fd-79057476cd43n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/b811cf4c-151c-45d9-a526-a51555d315d6n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxD100N%2B6u03FtXG4W8X_Nj240CFtGXRowMQFyEd7AT0w%40mail.gmail.com.


Re: [go-cd] How Can we Integrate Jira ?

2022-07-29 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
AFAIK there isn't any plugin for JIRA notifications at the moment in GoCD.
You might want to write a notification plugin for this.

Just curious though, Would the notifications be sent based on the ticket
that's in the commit message?

Thanks,

On Sat, 30 Jul 2022 at 10:27, Nayan Makwana 
wrote:

> I want to integrate Jira for notification as comment in raised ticket by
> another user so he/she will know which stage or pipeline is running and it
> failed or pass...
>
>
> Regards
> Nayan Makwana
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/0d453730-56f5-49fb-99fd-79057476cd43n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cw-N%2BoCia78APTnxg%2BuW_0kzxKURTjXC1i%2BwM2hwL4iZA%40mail.gmail.com.


Re: [go-cd] Is their any option or plugin which can copy whole pipeline VSM for another environment

2022-07-27 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
A few suggestions:

   1. By environment. if you're referring to Environments in GoCD, then you
   should be able to clone the pipeline and assign the environments
   accordingly after the clone. It's a few extra clicks but the easiest way.
   2. If you can convert the pipeline to YAML/JSON then you can use any of
   the pipeline as code libraries
    to write
   the plugins. This is the next best way to do that, and it also has benefits
   like easy maintenance and review into what changed directly as part of your
   code. This is the recommended approach if you already have pipelines as
   code or want to invest in it to decouple the whole process from GoCD.
   3. Another way is to copy the *...* parts of the (
   cruise-config
   
)
   XML, change whatever that's needed and paste it (with a different value for
   the *'name="..."'*) so it becomes a new pipeline. Then update the
*...
   
*
   inside the *... *XML tags to associate them
   to the right environment. You might want to do this only with a maintenance
   window, so there aren't any external writes during that time to avoid
   missing changes.

As always, please always take a backup
 before
attempting to play with the config XML so you can restore back

in case of any issues.

On Wed, 27 Jul 2022 at 14:59, Nayan Makwana 
wrote:

> I have more than 30 deployment server environment and I don't want to
> create each & every pipeline for all the environment. I tried templating
> option but it it not work in my scenario. so is there any plugin or api
> available to copy whole pipeline because  all environment have same
> resource and functionality ?
>
> Thanks in Advance
> Nayan MAkwana
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/ca38034d-f661-4c99-802c-05394986b010n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwqVHQd1fBV4aCdjVFiN%3D7FJ1xhGzpegJgsjw6RbZMbWA%40mail.gmail.com.


Re: [go-cd] how to achieve workflow like given bellow

2022-07-25 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Hello,

Without getting into too much specifics, the way we used to construct
*conditional
workflows* are as follows: The condition is modelled as a stage in the
pipeline A usually. The If-true is pipeline B and if-else is pipeline C.So
you run your workflow and towards the end (on the last stage), you check
the condition you want and if it's true trigger pipeline B, else pipeline
C. You can use the APIs (or a simple cURL request to do that). This way you
get all the benefits of using GoCD pipelines like better visibility,
tracking, etc. To make identification easier, we also use the parent labels
to track things better.

If you want any *(mutable) state* to be persisted and/or be available as
part of the pipeline or to its dependents, IMHO the best way is to write
the state in a file (JSON/CSV/text YMMV) and expose it as an/many artifacts
to be consumed later in the pipeline or fetch it in downstream for later
consumption.

Thanks,


On Tue, 26 Jul 2022 at 10:28, Nayan Makwana 
wrote:

> [image: Screenshot_1.png]
>
> i want to archive this kind of work flow
> 1. the build process is not there because build is prepare by the
> developers
> 2. i am stuck at condition based running pipeline
> 3 i want to define env or param which can be auto increase or decrease as
> per build id
>
> Thanks In advance
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/9bf8510b-d663-4c67-8572-adc91c766240n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxSFDpsCQazb-BdkGTOVrbEAY_NDrEHCT%2BcNqgkWnSw_g%40mail.gmail.com.


Re: [go-cd] GoCD as an internal customized CI/CD platform

2022-07-05 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
GoCD server has a well documented API documentation at
https://api.gocd.org/current/.

You can build your own interface if interested using that. I should warn
you it's not that trivial to do so.

You can look at https://github.com/karmats/gocd-monitor for some
inspiration.

Thanks,


On Tue, Jul 5, 2022, 15:01 Young CJ  wrote:

> We noticed that GoCD web page is a Ruby on Rails project. It doesn't  fit
> well with our team's current teck stack. *We want to refactor it with Vue
> or React.* Any good suggestions?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/becb9a0d-2130-4f81-b449-0689db6567e8n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cz9gK5N%3DVcMiiDMP2vB6s_DMEGFzQW4p0osHiEJgkt-Zg%40mail.gmail.com.


Re: [go-cd] Global Env variables using Pipelines as Code?

2022-04-21 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
In this example on the README
: I see
environments and pipelines defined. Does that not help?

On Fri, 22 Apr 2022 at 01:08, Sifu Tian  wrote:

> Hi,
>
> I recently converted all of our pipelines to leverage config repository.
> One thing I haven't determined is how to get env variables that I can use
> by all pipelines.
> I lose the ability to add the pipelines to any environment that can
> consume the same env variables.
> One approach was to place the variables in my Dockerfile however we have
> some secure variables that we use that we cant leverage in a dockerfile and
> placed in SCM (Github)
>
> Can someone tell me how this has been addressed/solved.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/edce1657-6112-4293-8b32-9c24a20dc267n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzO7NXUSOQBR%3DN9mwwi3WtNqabxmFnL%3DXjyPsmbv39ZUA%40mail.gmail.com.


Re: [go-cd] How GoCD Works

2022-04-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
You might want to start off with this book

.

On Mon, 18 Apr 2022 at 22:48, Rahul Khinchi 
wrote:

> Hello GoCD Community,
> I am Rahul Khinchi and I want to use GoCD for my project. I just wanted to
> clear some doubts before integrating it. What benefit does GoCD have on
> automating the release process? Point to the actual step(s) that a GoCD
> will help to automate.
>
> Your response is appreciated. Please reply for the same
>
> Thank you,
> Rahul Khinchi
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/220b2f99-421c-491a-9094-7a6336e5d000n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyqFb9LqTRp6GQN9x4QOh7gmTWUfuDof%3DgNAqhRjTacZA%40mail.gmail.com.


Re: [go-cd] Multiple spawn of Tasks running on a pipeline issue

2022-04-12 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Great that you were able to figure out the root cause.

Cheers.

On Wed, Apr 13, 2022, 08:20 Sifu Tian  wrote:

> Hi Ash,
>
> I wanted to provide a follow-up response and say that I found the root
> cause of the issue.
>
> What I discovered is that during each stage, depending on the scripts our
> code is running, will spike in memory and CPU.  These spikes could last a
> few seconds, up to 30 sec.
> Within our Kubernetes Elastic agent profiles YAML files, I defined memory
> and CPU requests and limits.  The reason I did this was when running
> multiple pipelines,  the pods would only saturate one node while the other
> nodes stayed idle.
> This was the cause of the Pods either hanging or Kubernetes killing them.
> It was an oversight because I would continue to play with the CPU and Mem
> allocation in the file with no improvement.
> (e.g.  memory 1Gi - 4Gi and CPU 1.0 - 4.0.).
> Once I removed the specified memory and CPU in the YAML file, and allow
> Kubernetes to handle the distribution, none of the pods died.  I did notice
> 1 or 2 pipelines that handle our very heavy cpu and memory build hang but I
> can adjust different instances to accommodate the load on the cluster.
>
> [image: Screen Shot 2022-04-12 at 10.48.24 PM.png]
>
> On Tuesday, April 12, 2022 at 9:41:12 AM UTC-4 ashwant...@gmail.com wrote:
>
>> This behaviour of GoCD usually points to Agent process dying mid-way and
>> GoCD automatically re-assign the work to another agent and they would start
>> from scratch. Can you check the agent process logs for the earlier runs to
>> see if there are any exceptions that might have caused the GoCD Server to
>> reassign the process to another agent?
>>
>> Sometimes it could be the pipeline itself that's killing the agent
>> process for a variety of reasons.
>>
>> On Tue, 12 Apr 2022 at 19:02, Sifu Tian  wrote:
>>
>>> [image: Screen Shot 2022-04-12 at 9.21.28 AM.png]Hi all,
>>>
>>> I have some unusual behavior that is happening on random pipelines.
>>> When the pipeline runs, it will run fine but the job will get to a
>>> certain point and start all over again pulling materials and running the
>>> same task. The first task appears to hang or just stops and a new but same
>>> job is run.  The pipeline never fails it just continues to run and it will
>>> spawn the same job over and over.  On the K8 cluster status page, it will
>>> only show one pod but in the console, it will show a new pod was issued.
>>>
>>> I am using the Kubernetes elastic agent plugin
>>> GoCD Server and agent are at 22.1
>>>
>>> Any thoughts or help would be greatly appreciated.[image: Screen Shot
>>> 2022-04-12 at 9.23.20 AM.png]
>>>
>>> --
>>> 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/3bf59b24-31f1-4445-be9e-a2ba6606d396n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/d3a5b605-130a-40d3-a70f-542a2878927dn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cz_cSoOLSJXKJbM0GAwCuEwNJDzNEffHibu3Bfiykifiw%40mail.gmail.com.


Re: [go-cd] Running a pipeline multiple times in parallel in not possible?

2022-03-04 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Template is a set of stage / job combinations which can be created once and
re-used across multiple pipelines. Think of a case where-in you've a deploy
pipeline called "Deploy-A-Staging", you might need another deploy pipeline
for production push say "Deploy-A-Production". In this way, you want the
Deploy-A-Staging and Deploy-A-Production to have the same set of steps, you
control the parameters via Environment variables / Parameters depending on
how you've set up your pipeline. Before we had the feature of Pipeline as a
Code (PAAC), templates were the way to get it done faster since the entire
manipulation was mostly done via the UI. Today you achieve the same effect
via PAAC out of the box, but it's very specific to that config format
plugin and not available on GoCD as a first class entity.

Few points to remember when working with templates:
- Templates can have implicit references to different pipelines as part of
"Fetch Artifact" tasks for example.
- It can assume a particular material (like Git material) presence because
as part of "Custom Command" you can give anything in it.
- It can also refer to parameters in it's task definitions. This is why you
can choose a template for the new pipeline only if they've all the required
dependencies else pipeline save validations might fail.

These are probably some of the reasons why Templates are always extracted
from a valid pipeline rather than be created from scratch.

Now coming to creating a pipeline from a template, As part of this API
 example in the page,
Assuming you've a template called "Template-Name-For-Deploy-A", instead of
passing "stages: [...]", you can try passing "stages; null" and  "template:
'Template-Name-For-Deploy-A'" properties. I know the documentation for this
API isn't very beginner friendly, we appreciate any type of contribution to
improve it.

Thanks,



On Fri, 4 Mar 2022 at 13:41, Mario Giammarco  wrote:

> At this moment I need to do a fast proof of concept hoping to move the
> project from azure devops.
> I have no problem in creating a pipeline and deleting it.
> The problem is, for example, that I have built a template and I would like
> to create pipeline from template, but I see that also in API the "create
> from template" is missing.
> So you can "extract from template" but not create. And so what you do with
> templates?
> Thanks again,
> Mario
> Il giorno giovedì 3 marzo 2022 alle 12:06:17 UTC+1 ashwant...@gmail.com
> ha scritto:
>
>> Unfortunately as you've already discovered GoCD locks at a pipeline-stage
>> level today. So if you don't have the pipeline locked -- You can run the
>> same pipeline in parallel, where the parallelism is defined by the number
>> of stages in the pipeline. If you've locking enabled or just a single stage
>> you can only run one instance of the entire pipeline. AFAIK you can't even
>> schedule a new pipeline run until the current one is finished or use a 
>> *custom
>> SCM plugin* that can sequence the commits (or any other parameter) and
>> run the pipeline one after the other automatically for you.
>>
>> Long story short, if you're very particular about parallel builds. You
>> should be able to create a new pipeline instance using a template via API
>> and run the build for a particular version (it's easy if you're using Git
>> for example) and choose to delete it later on (as part of house-keeping
>> activity). The biggest problem I can think of is you will lose the build
>> history and console.log as part of it. If you're too invested in GoCD and
>> want to go down the custom SCM route or a separate tool, I'm happy to
>> connect offline and discuss more about this.
>>
>> On Thu, 3 Mar 2022 at 14:15, Mario Giammarco  wrote:
>>
>>> Perfect!
>>> But if I launch two times the same pipeline the second one waits even if
>>> there are free agents, correct?
>>>
>>> Il giorno giovedì 3 marzo 2022 alle 01:43:01 UTC+1 ashwant...@gmail.com
>>> ha scritto:
>>>
 > I would like to simplify even more problem description. Basically I
 have X agents. I need to call a "manager" that tells me "there is a free
 agent". Then I tell the "manager" to run a software on that agent. If there
 are no more free agents I wait.

 This is exactly how GoCD works - Manager (the GoCD Server) has X agents
 configured, foreach job (pipeline / stage / job) that you  trigger, the
 Manager waits until it finds a free agent and executes it there. What to
 execute is specified as tasks within the pipeline / stage / job spec.


 On Wed, 2 Mar 2022 at 22:27, Mario Giammarco 
 wrote:

> I would like to simplify even more problem description. Basically I
> have X agents. I need to call a "manager" that tells me "there is a free
> agent". Then I tell the "manager" to run a software on that agent. If 
> there
> are no more free agents I wait.
>
> Il giorno mercoledì 2 marzo 2022 alle 15:38:54 UTC+1 M

Re: [go-cd] Delete Pipelines in /var/lib/go-agent/pipelines

2022-03-03 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
See if this is useful:
https://gist.github.com/ashwanthkumar/9ba57d8cdfbcae956ba92a99ebf74bc4

In GoCD when an agent runs a pipeline / stage / job, that job has exclusive
access to the agent. So we've a pipeline that is marked to run on all
available agents once a day (generally when you know most agents are free,
like a nightly job) and have a script that delete everything under the
${GO_AGENT_DIR}/pipelines except the current ${GO_PIPELINE_NAME} which is
probably just a shell script anyways. Depending on how quickly your disk
fills up, you can tweek how many times you want to run this pipeline in a
given day.

Thanks,

On Thu, 3 Mar 2022 at 21:37, Eric Frazier  wrote:

> My system has limited amount of space and the pipelines that get stored
> here using most of it. Is there a way for the agent to clean up after
> itself inside this directory?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/cdd110c4-4545-422a-8c75-f07b5167716dn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cyzzd8DLcJi54em84JiYF7SXvf0%2BXm8EyA8eHNADNeejw%40mail.gmail.com.


Re: [go-cd] Running a pipeline multiple times in parallel in not possible?

2022-03-03 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Unfortunately as you've already discovered GoCD locks at a pipeline-stage
level today. So if you don't have the pipeline locked -- You can run the
same pipeline in parallel, where the parallelism is defined by the number
of stages in the pipeline. If you've locking enabled or just a single stage
you can only run one instance of the entire pipeline. AFAIK you can't even
schedule a new pipeline run until the current one is finished or use a *custom
SCM plugin* that can sequence the commits (or any other parameter) and run
the pipeline one after the other automatically for you.

Long story short, if you're very particular about parallel builds. You
should be able to create a new pipeline instance using a template via API
and run the build for a particular version (it's easy if you're using Git
for example) and choose to delete it later on (as part of house-keeping
activity). The biggest problem I can think of is you will lose the build
history and console.log as part of it. If you're too invested in GoCD and
want to go down the custom SCM route or a separate tool, I'm happy to
connect offline and discuss more about this.

On Thu, 3 Mar 2022 at 14:15, Mario Giammarco  wrote:

> Perfect!
> But if I launch two times the same pipeline the second one waits even if
> there are free agents, correct?
>
> Il giorno giovedì 3 marzo 2022 alle 01:43:01 UTC+1 ashwant...@gmail.com
> ha scritto:
>
>> > I would like to simplify even more problem description. Basically I
>> have X agents. I need to call a "manager" that tells me "there is a free
>> agent". Then I tell the "manager" to run a software on that agent. If there
>> are no more free agents I wait.
>>
>> This is exactly how GoCD works - Manager (the GoCD Server) has X agents
>> configured, foreach job (pipeline / stage / job) that you  trigger, the
>> Manager waits until it finds a free agent and executes it there. What to
>> execute is specified as tasks within the pipeline / stage / job spec.
>>
>>
>> On Wed, 2 Mar 2022 at 22:27, Mario Giammarco  wrote:
>>
>>> I would like to simplify even more problem description. Basically I have
>>> X agents. I need to call a "manager" that tells me "there is a free agent".
>>> Then I tell the "manager" to run a software on that agent. If there are no
>>> more free agents I wait.
>>>
>>> Il giorno mercoledì 2 marzo 2022 alle 15:38:54 UTC+1 Mario Giammarco ha
>>> scritto:
>>>
 If I create several pipelines from a template can I run them in
 multiple agents?

 Il giorno mercoledì 2 marzo 2022 alle 15:28:15 UTC+1 Mario Giammarco ha
 scritto:

> Il giorno martedì 1 marzo 2022 alle 16:26:54 UTC+1 Chad Wilson ha
> scritto:
>
>>
>>
>>- separate *jobs* within the same stage of a single pipeline that
>>override env vars differently at job scope, but execute the same 
>> tasks in
>>each job
>>- separate *pipelines* entirely, that have the same material
>>inputs/triggers, but have different configuration for the 
>> stage/job/tasks
>>
>>
>>
> Regarding this, can you confirm that I can use same material with
> different pipelines? I have tried ONLY with web gui and it seems it ignore
> existing material configuration during creation of a new pipeline.
>
>
>> On Tue, Mar 1, 2022 at 10:43 PM Mario Giammarco 
>> wrote:
>>
>>> Sorry I need to change enviroment variables not parameters.
>>>
>>> Il giorno martedì 1 marzo 2022 alle 15:38:09 UTC+1 Mario Giammarco
>>> ha scritto:
>>>
 Hi,
 I resurrect this thread.
 I have one pipeline and several agents. I need to run the pipeline
 multiple times in parallel with different parameters.
 It seems to me a common and easy question.
 Reading this thread, bug description and other threads it seems it
 is not possible.
 I am really surprised about it.
 Is it really not possible?
 Is there a workaround?
 Thanks,
 Mario

 Il giorno lunedì 3 ottobre 2016 alle 08:00:08 UTC+2 Zabil C M ha
 scritto:

> There's an issue logged for this here
> https://github.com/gocd/gocd/issues/2329
>
> In short, you can't do this at the moment but we are willing to
> help out with and merge this feature if someone picks it up.
>
> On Wed, Sep 28, 2016 at 3:48 PM,  wrote:
>
>> One of the key features that made us decide to migrate to gocd
>> several months ago was the idea that pipelines are able to run in 
>> parallel
>> and that more than one instance of a pipeline can be started.
>> Only now are we starting to realise that actually the same
>> pipeline cannot be executed multiple times in parallel since each 
>> stage
>> will always run sequentially even if it's the same stage in different
>> pipeline instances. I'

Re: [go-cd] Running a pipeline multiple times in parallel in not possible?

2022-03-02 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
> I would like to simplify even more problem description. Basically I have
X agents. I need to call a "manager" that tells me "there is a free agent".
Then I tell the "manager" to run a software on that agent. If there are no
more free agents I wait.

This is exactly how GoCD works - Manager (the GoCD Server) has X agents
configured, foreach job (pipeline / stage / job) that you  trigger, the
Manager waits until it finds a free agent and executes it there. What to
execute is specified as tasks within the pipeline / stage / job spec.


On Wed, 2 Mar 2022 at 22:27, Mario Giammarco  wrote:

> I would like to simplify even more problem description. Basically I have X
> agents. I need to call a "manager" that tells me "there is a free agent".
> Then I tell the "manager" to run a software on that agent. If there are no
> more free agents I wait.
>
> Il giorno mercoledì 2 marzo 2022 alle 15:38:54 UTC+1 Mario Giammarco ha
> scritto:
>
>> If I create several pipelines from a template can I run them in multiple
>> agents?
>>
>> Il giorno mercoledì 2 marzo 2022 alle 15:28:15 UTC+1 Mario Giammarco ha
>> scritto:
>>
>>> Il giorno martedì 1 marzo 2022 alle 16:26:54 UTC+1 Chad Wilson ha
>>> scritto:
>>>


- separate *jobs* within the same stage of a single pipeline that
override env vars differently at job scope, but execute the same tasks 
 in
each job
- separate *pipelines* entirely, that have the same material
inputs/triggers, but have different configuration for the 
 stage/job/tasks



>>> Regarding this, can you confirm that I can use same material with
>>> different pipelines? I have tried ONLY with web gui and it seems it ignore
>>> existing material configuration during creation of a new pipeline.
>>>
>>>
 On Tue, Mar 1, 2022 at 10:43 PM Mario Giammarco 
 wrote:

> Sorry I need to change enviroment variables not parameters.
>
> Il giorno martedì 1 marzo 2022 alle 15:38:09 UTC+1 Mario Giammarco ha
> scritto:
>
>> Hi,
>> I resurrect this thread.
>> I have one pipeline and several agents. I need to run the pipeline
>> multiple times in parallel with different parameters.
>> It seems to me a common and easy question.
>> Reading this thread, bug description and other threads it seems it is
>> not possible.
>> I am really surprised about it.
>> Is it really not possible?
>> Is there a workaround?
>> Thanks,
>> Mario
>>
>> Il giorno lunedì 3 ottobre 2016 alle 08:00:08 UTC+2 Zabil C M ha
>> scritto:
>>
>>> There's an issue logged for this here
>>> https://github.com/gocd/gocd/issues/2329
>>>
>>> In short, you can't do this at the moment but we are willing to help
>>> out with and merge this feature if someone picks it up.
>>>
>>> On Wed, Sep 28, 2016 at 3:48 PM,  wrote:
>>>
 One of the key features that made us decide to migrate to gocd
 several months ago was the idea that pipelines are able to run in 
 parallel
 and that more than one instance of a pipeline can be started.
 Only now are we starting to realise that actually the same pipeline
 cannot be executed multiple times in parallel since each stage will 
 always
 run sequentially even if it's the same stage in different pipeline
 instances. I'm stating this only based on this post
  which
 is the only mention of this issue that I've been able to find.

 So first off I'd like to verify if this is correct. Is it not
 possible to run several instances of the same pipeline concurrently (in
 parallel )without one instance being constrained by another (i.e. the
 second instance of the same pipeline is able to complete even if a
 previously initiated instance has not done so)?

 If this is the case, I'd really appreciate any help/ideas on
 overcoming this limitation in some way.
 The pipeline I'm working on has only one stage which simply runs a
 docker and then deletes the container and image. The docker does some 
 work
 on our machine learning models, there is no problem to run several
 containers of this docker at the same time - and that's exactly what 
 I'd
 like to do - i.e. run another docker each time that the pipeline is
 triggered (we're using the api to trigger it).
 I'd like to see the output created by each docker and, of course,
 see whether each pipeline has finished successfully or failed. The 
 order of
 execution and even the material version is not relevant, each instance 
 of
 the pipeline/docker has it's job to do.

 Finally, I'd like to ask if you guys feel that a feature that
 enables the same stage t

Re: [go-cd] Windows with space in path

2022-02-24 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
There is a comment with a possible workaround on the linked issue -
https://github.com/gocd/gocd/issues/4173#issuecomment-596109199. Have you
tried that?

We've a similar problem with linux based systems as well. As a general rule
I always wrap all my commands inside a shell script (or in your case a PS
file) and check it in as part of the repository like a *bin/build.sh* and
run that from GoCD instead of manually specifying the command on GoCD. This
has the following advantages like:

   1. I can move away from GoCD if I ever want to - think of it like an
   anti-Vendor lock-in mechanism.
   2. I can also build it locally or inside a docker or things like that If
   needed.
   3. I have fine grained control over who changed what and when on the
   commands for the build via my Git history. GoCD also does this, but it
   ain't easy to view the change history. You can track these changes too as
   part of your code review process itself.
   4. Since go-agents don't really spawn the command inside a shell
   that means referring to environment variables as part of the command would
   also be a pain. Having the command in a separate script allows me to access
   environment variables for my build like embedding the version as part of
   the build process into my final artifacts so I can track them via an
   internal API for example.

Thanks,


On Thu, 24 Feb 2022 at 15:22, Mario Giammarco  wrote:

> Hello,
> I have a windows task with this custom command:
> C:\'Program Files (x86)'\'Microsoft Visual
> Studio'\2019\Community\MSBuild\Current\Bin\msbuild.exe
>
> The command has spaces in path. When I launch it in some windows 10 pcs it
> works correctly in others it says that x86 is wrong argument. It means it
> does not accept spaces in file name.
>
> It exactly the same problem of this issue:
> https://github.com/gocd/gocd/issues/4173
>
> There are several issues with similar problems all marked as stale.
> I do not understand if someone has solved it, or there is a workaround.
> Can you help me?
> Thanks,
> Mario
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/8e8ef90a-9f91-4b3a-b479-10a944bb1ccen%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwnPdJuj0fVUu6s1DWb35UbfcUMMrOC4PrY-kv8UFLcgg%40mail.gmail.com.


Re: [go-cd] Can get GoCD to perform Git clone when triggering a pipeline

2022-02-24 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Just checking in to see if you're seeing this error while doing "Check
Connection" or while running the pipeline?

If it's while running the pipeline, then the credentials would have to be
present at the go-agent and not at the server because agents do the git
clone of the materials for the pipeline. This is probably why your pipeline
2 gives you an authentication error, while pipeline 1 gives you no
credentials found (or equivalent) errors. Seems like pipeline 2 error seems
to be that the username and password used is probably wrong. This can
happen if you've any saved password for accessing GoCD and when you open
the pop-up "Edit Git Material" screen, browsers (I'm looking at Chrome)
tend to auto-populate the saved password over the existing one. This used
to happen a while ago for me and got me head scratching for a while until I
realised this was the case. See if either of these 2 help you on this.

Thanks,


On Thu, 24 Feb 2022 at 03:34, Sifu Tian  wrote:

> Ive been trying all day with no luck
> I have 2 pipelines,  and no matter what scenario I choose, they both fail
> the initial cloning of my repository.  This is leveraging the kubernetes
> plugin for elastic agents.
>
>
> pipeline 1:
> Materials is set to:
> https://github.com/org/repo.git
> branch master
> username and password blank because I am leveraging .git-credentials file
> on go-server which has valid access token with basic oauth
> https://XXTokenXXX :
> x-oauth-ba...@github.com
>
> I can perform a git clone on the go-server uder the go user with no
> problem so I know the connections works.
> Error running pipeline :  *Cloning into '/go/pipelines/Common_Build'...*
> *STDERR: fatal: could not read Username for 'https://github.com
> ': No such device or addressFailed to run git clone
> command*
>
> pipeline 2:
> Materials is set to:
> https://github.com/org/repo.git
> branch master
> Username and password are used and have full access to repo
>
> I can perform a git clone on the go-server uder the go user with no
> problem so I know the connections works.
>
> *Error running pipeline:*
> *Cloning into '/go/pipelines/Common_Build'...STDERR: remote: Repository
> not found.STDERR: fatal: Authentication failed for
> 'https://github.com/org/repo.git/ 'Failed
> to run git clone command*
>
> Im really stuck no matter what I do.
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/195deac8-b98b-4005-b9fd-f0f5baf459a1n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwV2wir7RkmRfoXhU0MUQgSXGp1vmqmuA_XR6S2%2BFK3wg%40mail.gmail.com.


Re: [go-cd] Git material authentication using cached username

2022-02-23 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Enjoy your weekend!

On Wed, 23 Feb 2022 at 22:49, cal...@vertify.com 
wrote:

> Brilliant, it worked! Thanks so much Ashwanth. Now I will have my weekend
> back since I won't be setting up a new GoCD server before the March 1
> deadline :)
>
> On Wednesday, February 23, 2022 at 11:03:34 AM UTC-6 ashwant...@gmail.com
> wrote:
>
>> As part of the list of things you're willing to try, please try this
>> approach as well: *try changing any character case in your scm
>> connection url. *
>>
>> Eg: Instead of *bitbucket.org/myorg/somerepo.git
>> * try something like 
>> *Bitbucket.org/myorg/somerepo.git
>> *(notice the capital B in the hostname).
>>
>> This was an old workaround where-in scm materials are case sensitive in
>> GoCD, I'm not sure if this has changed recently but worth a try IMHO.
>>
>> Thanks,
>>
>> On Wed, 23 Feb 2022 at 22:21, cal...@vertify.com 
>> wrote:
>>
>>> Our GoCD 20.1.0 server is being affected by the bug "GitMaterial
>>> Authentication failed for the second user who using same repository"
>>> reported in the 2 issues listed here:
>>>
>>> https://github.com/gocd/gocd/issues/8986
>>> https://github.com/gocd/gocd/issues/9153
>>>
>>> ...in which the git clone at the agent uses a different username
>>> (previously configured username for that material/repo) than what is
>>> configured for the pipeline material.  When entering updated credentials on
>>> a pipeline material, the "Test Connection" button works on Material config,
>>> and the flyweight folder on the GoCD server for the pipeline uses the
>>> correct configured credentials. However when a build is triggered and the
>>> agent executes the git clone we see the wrong username and correct password
>>> being used.
>>>
>>> I see an old message:
>>> https://groups.google.com/g/go-cd/c/SgqMvdSxMz4/m/kLqM3c4QBAAJ
>>>
>>> "GoCD doesn't cache any credentials for git materials. What usually
>>> caches credentials is git's credential helper. "
>>>
>>> However given that I can observe the git clone command being spawned
>>> with the wrong username (exactly as described in the bug reports), it leads
>>> me to believe the caching is in GoCD.
>>>
>>> git.exe5188Process CreateC:\Program
>>> Files\Git\mingw64\libexec\git-core\git-remote-https.exeSUCCESS
>>>PID: 1860, Command line: git-remote-https origin https://someuser
>>> %test.com:[password-redacted]@bitbucket.org/myorg/somerepo.git
>>>
>>> Has anyone found a workaround to get pipelines to stop using the old
>>> username part of the material credentials? I have tried everything I can
>>> think of (listed in my comment in the issue
>>> ) -
>>> short of setting up a new GoCD server. I am assuming that upgrading the
>>> GoCD server won't help since the bug reports are still open.
>>>
>>> Bitbucket is deprecating support for using account passwords
>>> 
>>> on March 1, 2022 and we need to find a way to update credentials for all
>>> our pipelines.
>>>
>>> Regards
>>> Craig
>>>
>>> GoCD version: 20.1.0 (4-f2c1771e333ea92dae82cd78d2efa1310c1086f0)
>>>
>>> --
>>> 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/5f78033f-99de-4c27-bbff-e9a3846bc801n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/e091488d-f88b-4f2a-8b2b-b484d6ff2c66n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwtqCspQuH7K%3DquYyS_YYC5VX%3DQ08RMXTnS5j_76FjWoQ%40mail.gmail.com.


Re: [go-cd] Git material authentication using cached username

2022-02-23 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
As part of the list of things you're willing to try, please try this
approach as well: *try changing any character case in your scm connection
url. *

Eg: Instead of *bitbucket.org/myorg/somerepo.git
* try something like
*Bitbucket.org/myorg/somerepo.git
*(notice the capital B in the hostname).

This was an old workaround where-in scm materials are case sensitive in
GoCD, I'm not sure if this has changed recently but worth a try IMHO.

Thanks,

On Wed, 23 Feb 2022 at 22:21, cal...@vertify.com 
wrote:

> Our GoCD 20.1.0 server is being affected by the bug "GitMaterial
> Authentication failed for the second user who using same repository"
> reported in the 2 issues listed here:
>
> https://github.com/gocd/gocd/issues/8986
> https://github.com/gocd/gocd/issues/9153
>
> ...in which the git clone at the agent uses a different username
> (previously configured username for that material/repo) than what is
> configured for the pipeline material.  When entering updated credentials on
> a pipeline material, the "Test Connection" button works on Material config,
> and the flyweight folder on the GoCD server for the pipeline uses the
> correct configured credentials. However when a build is triggered and the
> agent executes the git clone we see the wrong username and correct password
> being used.
>
> I see an old message:
> https://groups.google.com/g/go-cd/c/SgqMvdSxMz4/m/kLqM3c4QBAAJ
>
> "GoCD doesn't cache any credentials for git materials. What usually caches
> credentials is git's credential helper. "
>
> However given that I can observe the git clone command being spawned with
> the wrong username (exactly as described in the bug reports), it leads me
> to believe the caching is in GoCD.
>
> git.exe5188Process CreateC:\Program
> Files\Git\mingw64\libexec\git-core\git-remote-https.exeSUCCESS
>PID: 1860, Command line: git-remote-https origin https://someuser
> %test.com:[password-redacted]@bitbucket.org/myorg/somerepo.git
>
> Has anyone found a workaround to get pipelines to stop using the old
> username part of the material credentials? I have tried everything I can
> think of (listed in my comment in the issue
> ) -
> short of setting up a new GoCD server. I am assuming that upgrading the
> GoCD server won't help since the bug reports are still open.
>
> Bitbucket is deprecating support for using account passwords
> 
> on March 1, 2022 and we need to find a way to update credentials for all
> our pipelines.
>
> Regards
> Craig
>
> GoCD version: 20.1.0 (4-f2c1771e333ea92dae82cd78d2efa1310c1086f0)
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/5f78033f-99de-4c27-bbff-e9a3846bc801n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cz46wOC4sD8_HWUAzaFF5TkJJ%2B5bdJwukcwJgO%3DRUgD7g%40mail.gmail.com.


Re: [go-cd] How to pass modified files to gocd pipeline

2021-12-06 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
GoCD doesn't give this information out of the box, but you can probably use
this answer (https://stackoverflow.com/a/55665550/11474419) to get that
yourself.

You can get the commit id(s) via environment variable(s) for the required
material that's configured in the pipeline.

Thanks,


On Mon, Dec 6, 2021 at 4:01 PM 'Beatrice Hammond' via go-cd <
go-cd@googlegroups.com> wrote:

> Hi GOCD
>
> I have a pipeline which for one of the steps requires a list of the
> modified files in the commit that triggered the files to be passed into it.
>
> Is there a way of accessing this information, perhaps as an environment
> variable and passing it to the pipeline. I can see GOCD has access to this
> information but am unsure how to configure the pipeline to make use of it.
>
> Thank You in advance
> Kind regards,
> Beatrice
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/0fc9e206-8fac-48d4-8cd9-6e24e12338d1n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyWSjVRbE7AYmqV7gU3nPHOxJkGjCtZKsXJfWiuOdzpiQ%40mail.gmail.com.


Re: [go-cd] error trying to execute a command [script-executor] Script completed with exit code: 127.

2021-12-03 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
A few things you can try:

1. Try adding the shebang for bash on your script. -- this will help ensure
bash is the interpreter that's being used and it would pick up the *.bashrc*
from go user.
2. See if you can update the *PATH* on */etc/profile* or a similar path so
even sh sheel can pick it up.
3. Try restarting the go-cd agents, for them to pick up the new environment
variable values.


On Sat, Dec 4, 2021, 09:14 Sifu Tian  wrote:

> Hi Everyone,
>
> Ive been spinning my wheels trying to get my pipeline to run a straight
> forward salt-ssh command place in the script editor.
>
> I've updated my .bashrc with the path export PATH=$PATH:/var/go/.local/bin
> as this is where salt-ssh is installed however I still get an error
> */f835531d-e481-4e73-8770-bfb4950256fa.sh: line 2: salt-ssh: command not
> found*
> *[script-executor] Script completed with exit code: 127.*
>
> When I run the command from the agent under the go user, it runs just fine:
> -- Succeeded: 102 (changed=8) Failed: 0 -- Total
> states run: 102 Total run time: 9.241 s
>
> Im not sure what Im doing wrong but any help would be greatly appreciated
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/9dabb32c-d43f-4acf-b892-116486832dbbn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwgvW4EZvN075FmBKss2%2BArCJ0zy26wNBzGZj4uxZsX7w%40mail.gmail.com.


Re: [go-cd] Go / Golang - Impossible to run go build

2021-11-22 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
>From a GoCD point of view there is no difference between yarn build and go
build. After adding *go* binary to PATH have you tried restarting the
agents? If not please restart them and try running the pipeline. We do
build go projects in GoCD without issues.



On Mon, Nov 22, 2021, 21:02 Jean-Charles Passepont 
wrote:

> Hi,
>
> My use case is the following: I have a Go repository that has to be build
> and deployed on a target server.
> I've had 0 issue with a yarn and npm projects (both installed on the
> target server).
> Although I have installed Go (I mean Golang 1.17.3) on the target server,
> GoCD persist on returning:
>
> go build took: 0.2s
> Error happened while attempting to execute 'go build'.
> Please make sure [go] can be executed on this agent.
> [Debug Information] Environment variable PATH:
> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
>
> I've tried to add the path on the environment variables or even add steps
> to install Go(lang) during the GoCD steps but it seems overly complicated.
>
> Has anyone successfully run a GoCD pipeline with Golang?
>
> Many thanks.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/fa855d7f-3526-434e-a1f0-dc847bffedebn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxB2ZEqWRbgHcqCj_KTPwFcfsnmA2ZC%3DkVEopvR1YrK8A%40mail.gmail.com.


Re: [go-cd] Is it possible a hung job causes other running jobs to reschedule as well?

2021-10-13 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Scenario(s) that I've personally experienced in GoCD:

   1. *Job is actually hung or it doesn't write anything to stdout / stderr
   for a long time, which is the definition of job hung in GoCD* -- GoCD
   still doesn't kill the job or reschedule it. If you've configured job hung
   timeout then it fails the job, but never reschedules it automatically. The
   reason is, GoCD as a system can't decide if you want to rerun a hung job on
   it's own. I've had some jobs hung for months and we generally notice it
   only after we run out of agents for our pipelines or manually running our
   CD pipelines for some deployment.
   2. *GoCD Rescheduling jobs onto a different agent*. This happens
   automatically if during an active job the agent goes missing or doesn't
   return heartbeats to the server. Since GoCD now has detected that an agent
   which was running an active job has been killed or went non-responsive, it
   would automatically reschedule the job once again.

Usually *these both are not* related to each other.

I've personally not used the k8s plugin but the behaviour I've described
above is specific to GoCD-Server so it shouldn't matter if the agents are
running on k8s or not. As next steps, I would suggest you start by looking
at the agent logs on which the job was running initially (if that's
possible) or check the go-server.log for possible agent disconnection
messages / errors which might explain the behaviour too.


Thanks,

On Tue, Oct 12, 2021 at 10:47 PM dle...@gmail.com  wrote:

> Hello --  Curious to know if anyone has seen this behavior before -
>
> GoCD version v20.2.0
> Kubernetes Elastic Agent Plugin v3.2.0-187
>
> We noticed in the console.log file for an actively  running job, midway
> through running there is a request to create a new pod for the job and the
> job starts over again:
>
> [go] Received request to create a pod for job
> JobIdentifier{pipelineName='REDACTED', pipelineCounter=412,
> pipelineLabel='412', stageName='deployStage', stageCounter='1',
> jobName='deploy', jobId=182,399} in cluster
> https://REDACTED.gr7.us-east-1.eks.amazonaws.com at 2021-10-08 19:02:25
> +00:00
>
> Looking through the go-server log, I do see an entry suggesting it thinks
> the job is hung:
>
> 2021-10-08 19:02:22,074 WARN [ThreadPoolTaskScheduler-1]
> ScheduleService:611 - Found hung job[id=JobInstance{stageId=169360,
> name='deploy', state=Building, result=Unknown, agentUuid='1cdec80
> 5-11a3-43aa-aa00-301004541e87', stateTransitions=[], scheduledDate=Fri Oct
> 08 18:49:13 UTC 2021,
> timeProvider=com.thoughtworks.go.util.TimeProvider@237ff2e,
> ignored=false, identifier=JobIdent ifier[REDACTED, 412, 412, deployStage,
> 1, deploy, 182391], plan=null, runOnAllAgents=false,
> runMultipleInstance=false}], rescheduling it 2021-10-08 19:02:22,074 WARN
> [ThreadPoolTaskScheduler-1] ScheduleService:660 - [Job Reschedule]
> Rescheduling and marking old job as ignored: JobInstance{stageId=169360,
> name='deploy', state= Building, result=Unknown,
> agentUuid='1cdec805-11a3-43aa-aa00-301004541e87', stateTransitions=[],
> scheduledDate=Fri Oct 08 18:49:13 UTC 2021,
> timeProvider=com.thoughtworks.go.util.TimeProvider @237ff2e, ignored=false,
> identifier=JobIdentifier[REDACTED 412, 412, deployStage, 1, deploy,
> 182391], plan=null, runOnAllAgents=false, runMultipleInstance=false}
> 2021-10-08 19:02:22,082 INFO [ThreadPoolTaskScheduler-1]
> ScheduleService:678 - [Job Reschedule] Scheduled new job: JobIdentifier[
> REDACTED, 412, 412, deployStage, 1, deploy, 182399]. Replacing old job:
> JobIdentifier[REDACTED, 412, 412, deployStage, 1, deploy, 182391]
>
> There's nothing in the job's console to indicate the job was hung. Turning
> on timestamps shows that there was a log entry about 2 minutes before the
> entry for receiving the new pod creation request.
>
> However, I did notice that at the same time GoCD detected that hung job,
> it detected another hung job, which in all likelihood was hung, or at least
> was slow to report any console output (we have to tune this job better as
> its a bit of a resource hog)
>
> What *seems* to have happened is that gocd detects a legit hung job and
> reschedules it, but in the process *also* reports it detected another hung
> job that is likely NOT actually hung and end up rescheduling that one as
> well.
>
> Is this a plausible scenario?  Anyone experience anything like this before?
>
> I was looking through release notes for subsequent versions beyond what we
> have current deployed for gocd and the k8 EA cluster plugin and I'm not
> seeing any bug fixes that might address this.
>
> In the meantime,  I'll see if I can mine through our go-server log history
> and find other cases of this scenario.
>
> Thanks.
>
> Doug
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on

Re: [go-cd] Need info in gocd pipeline setting for time gap

2021-09-01 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
So if task A takes about an hour. Wouldn't you want the pipeline to wait
until it completes? That way you know the status of the task isn't? We also
use GoCD as a workflow scheduler and realised over the years that waiting
for the task makes sure we get both history (runtime graph, success
/failure etc.) and better visibility from GoCD for free.

Do you think something like this would work? If yes, given your agents are
mostly going to be idle you can increase the number of agents to
accommodate other pipelines as needed or tie them to a specific resource /
environment so you just reuse a small section of them for these long
waiting tasks.

On Wed, Sep 1, 2021, 1:03 PM Sunaina Awadhiya  wrote:

> Hi Ashwanth,
>
> Thank you for response. Below is my Usecase:
>
> 1. Pipeline A trigger some task which takes time to complete(say 1 hour)
> 2. Pipeline B have verification steps for pipeline A which needs to wait
> for 1 hour
>
> I can have some other way like using AWS lambda but this is the easiest
> way what i could see.
>
>
> On Wed, Sep 1, 2021 at 12:10 PM 'Ashwanth Kumar' via go-cd <
> go-cd@googlegroups.com> wrote:
>
>> You can't do that across stages in a single pipeline but you might be
>> able to do it across pipelines. I'm going to assume pipeline A is the first
>> pipeline and you want pipeline B to run 2 hours after A has finished.
>>
>> Here are some possible scenarios:
>> 1. Pipeline A runs on a schedule
>> If yes, then you can set the pipeline B to run roughly 2 hours after A.
>>
>> 2. Pipeline A runs on changes/manually triggered
>> If yes, then you can have a stage at the end of pipeline that could
>> generate a cron schedule and update the pipeline B with it. It's not nice I
>> know.
>>
>> 3. Option 3
>> If you want to run pipeline B to run after a few hours / minutes because
>> of an external event, see if you can have that event source trigger
>> pipeline B via GoCD API. I don't know if this might fit your use-case but
>> just putting it out there.
>>
>> 4. Custom SCM Plugin
>> Another fancy way would be to write a custom new SCM plugin that does
>> these for you. Depending on how much you want to do this in your
>> infrastructure, you can choose to invest in something like that.
>>
>> Having said that, I would really like to understand your use-case if it's
>> okay to share on why you would need something like that?
>>
>> On Wed, Sep 1, 2021, 11:32 AM s.saw...@gmail.com 
>> wrote:
>>
>>> Hi All,
>>>
>>> i want to give some 1 hour time gap between 2 pipelines/stages. can this
>>> be possible without using sleep as i do not want my agent to engage for
>>> this time duration.
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/go-cd/4f23bf57-027c-4913-b73e-3174cfeef0f3n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/go-cd/4f23bf57-027c-4913-b73e-3174cfeef0f3n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/CAD9m7CzrF18tkMHUE6Mi7cdrUYjAh284rg7fGOnFoRfpO%2BhmDA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/go-cd/CAD9m7CzrF18tkMHUE6Mi7cdrUYjAh284rg7fGOnFoRfpO%2BhmDA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CA%2B7TbjLZDioR5uWsH5iAvHr8pycu1VTzEgcNVJYbxZ1hK6p2sg%40mail.gmail.com
> <https://groups.google.com/d/msgid/go-cd/CA%2B7TbjLZDioR5uWsH5iAvHr8pycu1VTzEgcNVJYbxZ1hK6p2sg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzrODaY_fFzS5x-e9oHbi7DL5Kp6Km-wfNeckUFtYKQVg%40mail.gmail.com.


Re: [go-cd] Need info in gocd pipeline setting for time gap

2021-08-31 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
You can't do that across stages in a single pipeline but you might be able
to do it across pipelines. I'm going to assume pipeline A is the first
pipeline and you want pipeline B to run 2 hours after A has finished.

Here are some possible scenarios:
1. Pipeline A runs on a schedule
If yes, then you can set the pipeline B to run roughly 2 hours after A.

2. Pipeline A runs on changes/manually triggered
If yes, then you can have a stage at the end of pipeline that could
generate a cron schedule and update the pipeline B with it. It's not nice I
know.

3. Option 3
If you want to run pipeline B to run after a few hours / minutes because of
an external event, see if you can have that event source trigger pipeline B
via GoCD API. I don't know if this might fit your use-case but just putting
it out there.

4. Custom SCM Plugin
Another fancy way would be to write a custom new SCM plugin that does these
for you. Depending on how much you want to do this in your infrastructure,
you can choose to invest in something like that.

Having said that, I would really like to understand your use-case if it's
okay to share on why you would need something like that?

On Wed, Sep 1, 2021, 11:32 AM s.saw...@gmail.com 
wrote:

> Hi All,
>
> i want to give some 1 hour time gap between 2 pipelines/stages. can this
> be possible without using sleep as i do not want my agent to engage for
> this time duration.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/4f23bf57-027c-4913-b73e-3174cfeef0f3n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzrF18tkMHUE6Mi7cdrUYjAh284rg7fGOnFoRfpO%2BhmDA%40mail.gmail.com.


Re: [go-cd] Re: Failover, HotStandby of GoCD

2021-08-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I don't know what kind of workloads you're running or plan on running on
GoCD that require a Hot Standby. But here are some of my notes if you want
to setup a quick failover for GoCD.

*The Easy Way*
You should look into this addon
 from
Thoughtworks. I have not personally used that addon so I'll wait for
someone else in the group to share their experience with it.

*The Hard Way*
Usually I would start with the latest copy of the backup. It contains the
following (at a high level):

   1. DB Backup (assuming you're using H2DB)
   2. config.xml backup (contains the entire pipelines, references to
   packages or pipeline as code references, etc.)

Another artifact (pun intended) for switching GoCD instances is the server
side artifacts for all the pipelines so your VSM works as intended across
all the pipelines. If you're on AWS (for example), doing something like
`aws s3 sync` with S3  or using EFS
 (shared network filesystem) for the artifacts
storage would solve that problem. Also make sure you're running the same
version of GoCD server to avoid any DB migrations related issues. *(Shameless
plug, if you're worried about the cost implications of storing lot of
artifacts check out GoCD Janitor
).*

PS: I personally have not tried this on a failover scenario, but have used
the above technique to migrate from one GoCD instance to an another
instance especially when migrating EC2 instances.

*Caveats (must read)*:

   1. Since we're dealing with last good backup, you're most likely to be
   behind on the latest state for the pipelines. (Few pipelines could have run
   since the last backup). You need to be wary of the consequences of such
   runs on your infrastructure or whatever workloads the pipelines run. If the
   operation is not idempotent it might have undesirable effects. This is
   applicable on both CI and CD pipelines in my experience.
   2. Extension of this DB state issue is, As soon as you launch the new
   GoCD Server instance -- a lot of pipelines might start firing because of
   latest commits or changes in the materials across the board. This is
   usually not a problem unless you've some time critical workloads that needs
   to run very often.
   3. Final issue is with new pipelines created since the backup might be
   missing and needs to be recreated.
   4. Almost all the issues could be addressed if you're using an external
   DB like Postgres. The config.xml might still be old so you might not get
   the latest created pipelines even with Postgres. I don't know if this
   behaviour is changed in the recent versions of GoCD.

GoCD is not built for hot failover. You can mostly optimize your MTTR with
the above setup.

Thanks,


On Mon, Aug 30, 2021 at 6:26 PM Supreme Overlord 
wrote:

> Any pointers guys?
>
> On Thursday, August 26, 2021 at 8:33:17 AM UTC-4 Supreme Overlord wrote:
>
>> Hey Guys,
>>
>> We are currently using GoCD 19.2. It's running in one region with
>> multiple agents. It is using the H2DB format and not a relational database.
>>
>> I want to provide a hot-standby in another region. My question is:
>>
>> 1. What is the best way to go about this?
>> 2. What files, folders and other necessary objects need to be copied from
>> GOCD Server 1 in region1 to GoCD Server 2 in region2.
>>
>> I will appreciate any assistance even if it's recommended we go the
>> relational dbase route.
>>
>> Best,
>> SupremeOverlord
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/54a094e8-1cf1-4988-9cb0-79d27f586e83n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzpYDAg_E2EtmZ%3DkgZDYv-9qp8LxmOHT_7AwOzVMDRpgg%40mail.gmail.com.


Re: [go-cd] After upgraded to 20.10.0-12356 - No pipeline is visible

2021-07-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
What does the server logs say?

On Thu, Jul 8, 2021, 3:40 PM Sathish Ravi  wrote:

> Hi,
>
> After we upgraded to from 18.3.0-6540 to 20.10.0-12356. Go dashboard is
> not displaying any pipeline that are added before.
>
> I was getting a empty screen.
>
> Can you help me on this.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/00c08a48-588f-4d04-9390-bc5e0079f6fdn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwhAWFF7bAJwRmPTKP9tjMmpBjfa16wEXNakG7boOob7w%40mail.gmail.com.


Re: [go-cd] Re: Pipeline failing in Go Server

2021-06-21 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
This is a long shot, but can you ssh into the failing agent machine, kill
the go-agent process and restart it? After that try assigning the failing
job to that agent and see if it works.

On Mon, Jun 21, 2021, 10:47 PM Sushma Gangaiah 
wrote:

> Hi Jason,
>
> The builds in these agents were successful til these days and there is no
> script change done, all of a sudden builds started failing. As I have
> mentioned earlier error is regarding not able to archive the application (
> know the solution to fix) whereas I am able to build the app locally in
> agent(not able to reproduce the error in agent) but only when run through
> go server the pipeline is failing, which is strange.
>
> Regards,
> Sushma
>
> On Mon, Jun 21, 2021, 10:13 PM Jason Smyth 
> wrote:
>
>>
>> Hi Sushma,
>>
>> I think we may need the actual error message if we are going to be able
>> to help.
>>
>> The situation you describe suggests that there is something specific to
>> the configuration of these 2 Agents that is causing an issue but without
>> the specific error it will be very difficult to determine the cause.
>>
>> Regards,
>> Jason
>>
>>
>> On Monday, 21 June 2021 at 12:35:19 UTC-4 gangaia...@gmail.com wrote:
>>
>>> Hi Jason,
>>>
>>> 1. Error on go-server is regarding ,not able to archive the
>>> application.(but in agent manually and through command line  I can build
>>> the app)
>>>
>>> 2.yes, we are trying to build android and iOS app, one of the agent is
>>> not able to build android and the other iOS.
>>>
>>> 3.Yes,All the pipelines on this agents are getting failed with same
>>> error.
>>>
>>> Regards,
>>> Sushma
>>>
>>>
>>> On Mon, Jun 21, 2021, 9:56 PM Jason Smyth 
>>> wrote:
>>>
 Hello Sushma,

 What errors are you seeing on the Agents? Is the error the same every
 time? Are both Agents failing with the same error or are the errors
 different? Are all Pipelines failing on these 2 Agents or just some of 
 them?

 We are not likely to be able to help without more details around the
 specifics of your scenario and the issues that you are facing.

 Regards,
 Jason

 On Monday, 21 June 2021 at 06:32:14 UTC-4 gangaia...@gmail.com wrote:

> All,
>
> Hope you are doing fine.
>
> This is very strange scenario,
> We have around 8 agents with same configuration. We use pipeline as a
> code to run pipeline from Go Server and all of our builds were running
> successfully. But since few days only in 2 agents builds are failing
> whereas to debug when we run the same command in agent using command line
> or tools it is successful.
> Also when the same job is redirected to another resource(agent) its
> being success.
> Worried what I may be missing? and what may be the cause, which is
> causing only failure from pipeline and not in local(agent where pipeline
> builds job)
> Go version -19.9.0.
>
> Please advice.
>
> Regards,
> Sushma
>
 --
 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/bc4b57fe-8ce9-4eca-bd9a-9942d35e63f9n%40googlegroups.com
 
 .

>>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/9e1bdfc0-a08b-43f6-bc57-6d67e49e7663n%40googlegroups.com
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAHDZtpSCpOrU5oPFuAeyzER21WXC_1CYf7wM%2BBN%3DQ_S0MqoVRg%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyzhxFWBGiJvkJdONpooDmjDc1Dix620f19GEmuN9b5ow%40mail.gmail.com.


Re: [go-cd] Java LTS Support in GoCD

2021-06-02 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I found another post on the OpenJDK mailing list to explain more clearly.

http://mail.openjdk.java.net/pipermail/jdk-dev/2018-August/001841.html

This further confirms that vendors who have forked OpenJDK might support it
but not OpenJDK itself.

On Wed, Jun 2, 2021, 7:57 PM Ashwanth Kumar 
wrote:

> Taking the notes from GoCD stance (
> https://www.gocd.org/2019/05/21/official-stance-on-java/) and looking at
> IntelliJ blog post (
> https://blog.jetbrains.com/idea/2018/09/using-java-11-in-production-important-things-to-know/),
> and OpenJDK releases page (https://jdk.java.net/archive/) and assuming my
> understanding is correct,
>
> It seems like you get LTS support only for paid version of Oracle JDK not
> for the OpenJDK variants.
>
> On Wed, Jun 2, 2021, 7:39 PM Jason Smyth  wrote:
>
>> Hi all,
>>
>> Based on what I read in this recent thread
>> , it seems GoCD only
>> supports Java v >= (latest-2), regardless of Long-Term Support status of
>> any releases.
>>
>> This would seem to indicate that even though Java 11 is the most recent
>> LTS version and the next LTS version will not be until Java 17, GoCD has
>> already dropped support for Java 11 because Java 14 (not LTS) and 15 (not
>> LTS) have already been released, so (latest-2) is now 13.
>>
>> This will effectively force all GoCD users to either go long periods of
>> time without updating GoCD (i.e. do not run any versions of GoCD that
>> support neither v11 nor v17) or switch to non-LTS versions of Java. Since
>> non-LTS versions of Java are only supported for 6 months until the next
>> version is released, this then forces all GoCD users to major Java version
>> updates every 6 months if they want to run only supported versions.
>>
>> Am I missing something here? Why does GoCD not support the latest LTS
>> version of Java? Why support Java 13 (support ended more than a year ago in
>> March 2020) but not 11 (supported until at least 2024)? Is it just too much
>> work to test such an "old" version?
>>
>> Sorry if this is not the right place to raise this but it didn't seem
>> appropriate to raise a GitHub Issue at this point. I would love to hear
>> other people's thoughts on this.
>>
>> Regards,
>> Jason Smyth
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/f64f8a9e-587a-498b-9c90-3af4ae23dc46n%40googlegroups.com
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx9nx1tC%3DusFa5ZHYULGPK%3D2VNe8Niq98HzbcMZH3LV4Q%40mail.gmail.com.


Re: [go-cd] Java LTS Support in GoCD

2021-06-02 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Taking the notes from GoCD stance (
https://www.gocd.org/2019/05/21/official-stance-on-java/) and looking at
IntelliJ blog post (
https://blog.jetbrains.com/idea/2018/09/using-java-11-in-production-important-things-to-know/),
and OpenJDK releases page (https://jdk.java.net/archive/) and assuming my
understanding is correct,

It seems like you get LTS support only for paid version of Oracle JDK not
for the OpenJDK variants.

On Wed, Jun 2, 2021, 7:39 PM Jason Smyth  wrote:

> Hi all,
>
> Based on what I read in this recent thread
> , it seems GoCD only
> supports Java v >= (latest-2), regardless of Long-Term Support status of
> any releases.
>
> This would seem to indicate that even though Java 11 is the most recent
> LTS version and the next LTS version will not be until Java 17, GoCD has
> already dropped support for Java 11 because Java 14 (not LTS) and 15 (not
> LTS) have already been released, so (latest-2) is now 13.
>
> This will effectively force all GoCD users to either go long periods of
> time without updating GoCD (i.e. do not run any versions of GoCD that
> support neither v11 nor v17) or switch to non-LTS versions of Java. Since
> non-LTS versions of Java are only supported for 6 months until the next
> version is released, this then forces all GoCD users to major Java version
> updates every 6 months if they want to run only supported versions.
>
> Am I missing something here? Why does GoCD not support the latest LTS
> version of Java? Why support Java 13 (support ended more than a year ago in
> March 2020) but not 11 (supported until at least 2024)? Is it just too much
> work to test such an "old" version?
>
> Sorry if this is not the right place to raise this but it didn't seem
> appropriate to raise a GitHub Issue at this point. I would love to hear
> other people's thoughts on this.
>
> Regards,
> Jason Smyth
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/f64f8a9e-587a-498b-9c90-3af4ae23dc46n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyS62bp0%2BtKKEL_mJrMy07kgM4LMics%3Df0zmV9DCTMUCQ%40mail.gmail.com.


Re: [go-cd] How to setup password authentication on Windows GoCD

2021-05-28 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
The password file format is documented in the Usage Instruction section at
https://github.com/gocd/gocd-filebased-authentication-plugin#usage-instructions.
To quote

> You can put as many username/hashed password pairs as you like -- use a
new line for each one

This section on the README talks about the configuration of the plugin:
https://github.com/gocd/gocd-filebased-authentication-plugin#configuration.
The general assumption we make across most of the plugins is that folks
know how to read "path-to-password-file" means.  To put it in "exact steps"
fashion, You can put the file anywhere on the machine, you just need to
make sure the gocd-server process can access it.

If you feel the documentation can be improved further, please send across a
PR on the plugin repo
 or the docs
repo  with better documentation. We
love contributions from our users.

Thanks,

On Fri, May 28, 2021 at 10:53 PM 'smtechx5000' via go-cd <
go-cd@googlegroups.com> wrote:

> Does the file name need to be '.htpasswd' ?  Or...'anything.htpasswd', or
> password.properties like the example in Go?  Can I just make a text file
> and name it something.htpasswd  then copy in my initial hashed password?
>
> On Friday, May 28, 2021 at 1:21:13 PM UTC-4 smtechx5000 wrote:
>
>> The plugin repo site is just as useless.
>>
>> On Friday, May 28, 2021 at 1:14:01 PM UTC-4 ashwant...@gmail.com wrote:
>>
>>> RTFM
>>>
>>>1.
>>>https://docs.gocd.org/current/configuration/dev_authentication.html
>>>2.
>>>https://github.com/gocd/gocd-filebased-authentication-plugin#readme
>>>
>>>
>>> On Fri, May 28, 2021 at 10:29 PM 'smtechx5000' via go-cd <
>>> go...@googlegroups.com> wrote:
>>>
 See what I mean?  Where is all this documentation?

 On Friday, May 28, 2021 at 12:58:48 PM UTC-4 smtechx5000 wrote:

> And where can I download htpasswd  without installing the entire
> Apache server suite?  Will it work on Windows?
>
> On Thursday, May 27, 2021 at 11:31:10 PM UTC-4 Marques Lee wrote:
>
>> Reference:
>> https://httpd.apache.org/docs/2.4/programs/htpasswd.html
>>
>> If you need more robust, there are plugins for that
>>
>> On Thu, May 27, 2021 at 8:29 PM Marques Lee <
>> marqu...@thoughtworks.com> wrote:
>>
>>> If you’re referring to the default password file, it’s in Apache
>>> htpasswd format.
>>>
>>> On Thu, May 27, 2021 at 7:02 PM 'smtechx5000' via go-cd <
>>> go...@googlegroups.com> wrote:
>>>
 Setting up password authentication on Windows.   What is a password
 file and how do I create one on Windows?

 --
 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/bbce99d5-1394-4a57-9970-8672e6925124n%40googlegroups.com
 
 .

>>> --
 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/ee92fd23-67ae-4722-9e34-d2e3ea07be5bn%40googlegroups.com
 
 .

>>>
>>>
>>> --
>>>
>>> Ashwanth Kumar / ashwanthkumar.in
>>>
>>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/3c2cc37a-abbf-41cb-9ea4-85b8345bdfc7n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwpM2-xJijgUuf1KdA5QCuZykC8M1v17%2BeVkT0n04yu2w%40mail.gmail.com.


Re: [go-cd] How to setup password authentication on Windows GoCD

2021-05-28 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
RTFM

   1. https://docs.gocd.org/current/configuration/dev_authentication.html
   2. https://github.com/gocd/gocd-filebased-authentication-plugin#readme


On Fri, May 28, 2021 at 10:29 PM 'smtechx5000' via go-cd <
go-cd@googlegroups.com> wrote:

> See what I mean?  Where is all this documentation?
>
> On Friday, May 28, 2021 at 12:58:48 PM UTC-4 smtechx5000 wrote:
>
>> And where can I download htpasswd  without installing the entire Apache
>> server suite?  Will it work on Windows?
>>
>> On Thursday, May 27, 2021 at 11:31:10 PM UTC-4 Marques Lee wrote:
>>
>>> Reference:
>>> https://httpd.apache.org/docs/2.4/programs/htpasswd.html
>>>
>>> If you need more robust, there are plugins for that
>>>
>>> On Thu, May 27, 2021 at 8:29 PM Marques Lee 
>>> wrote:
>>>
 If you’re referring to the default password file, it’s in Apache
 htpasswd format.

 On Thu, May 27, 2021 at 7:02 PM 'smtechx5000' via go-cd <
 go...@googlegroups.com> wrote:

> Setting up password authentication on Windows.   What is a password
> file and how do I create one on Windows?
>
> --
> 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/bbce99d5-1394-4a57-9970-8672e6925124n%40googlegroups.com
> 
> .
>
 --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/ee92fd23-67ae-4722-9e34-d2e3ea07be5bn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cz7osPauQsq85-UUUn_hoKyQ2s4Pm8MDGu%2B5QtuQ-Pk9Q%40mail.gmail.com.


Re: [go-cd] go server / agent upgraded to 21.2.0 and agent lost contact

2021-05-26 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
> PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target

This error usually means, SSL Certificate is not trusted on the client side
(whoever is making a request). In this case it's the agent. Couple of
patterns I have seen earlier:

   1. Did you happen to downgrade the JVM version (to something old or is
   it already running something old?) and you're using a LetsEncrypt cert by
   any chance? I would recommend using the latest JVM that's supported by
   GoCD.
   2. Are you using any self-signed SSL certificate on the server (behind a
   reverse proxy or such)? If yes, you might want to import that into the
   agent's JVM truststore.

Thanks,


On Wed, May 26, 2021 at 9:52 AM Prakash K  wrote:

> Hello everyone,
>
> We have recently upgraded both server and agent to 21.2.0 and agent is
> still lost contact. Appreciate your thoughts and help.
>
> Go-server -> up and running.
> Go-agent -> go-agent service is up and running but the agent is still in
> lost contact at server side.
>
>
> we restarted both server and agent and no luck.
>
>
> I also have another question reg go-agent-1, 2 3.. are these still
> applicable to new version 21.2.0?
> When I run "service go-agent-1" we are still getting java version , home
> path error. Not sure if agent-1, 2, 3 are still valid in 21.2.0.
>
> In the /var/log/go-agent/go-agent-launcher.log, we see the below error.
> Your help will be highly appreciated as we have several PROD instances
> running using 18.x versions and we need to upgrade them to 21.2.0 asap. so
> we are trying an upgrade in DEV and facing with these issues. Thank you.
> Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
> unable to find valid certification path to requested target at
> java.base/sun.security.provider.certpath.SunCertPathBuilder.build(Unknown
> Source) at
> java.base/sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown
> Source) at java.base/java.security.cert.CertPathBuilder.build(Unknown
> Source) ... 51 common frames omitted 2021-05-26 13:58:56,480 ERROR
> [WrapperJarAppMain] ServerBinaryDownloader:88 - Couldn't update
> admin/agent-launcher.jar. Sleeping for 1m. Error:
> javax.net.ssl.SSLHandshakeException: PKIX path building failed:
> sun.security.provider.certpath.SunCertPathBuilderException: unable to find
> valid certification path to requested target at
> java.base/sun.security.ssl.Alert.createSSLException(Unknown Source) at
> java.base/sun.security.ssl.TransportContext.fatal(Unknown Source) at
> java.base/sun.security.ssl.TransportContext.fatal(Unknown Source) at
> java.base/sun.security.ssl.TransportContext.fatal(Unknown Source) at
> java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.checkServerCerts(Unknown
> Source) at
> java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.onCertificate(Unknown
> Source) at
> java.base/sun.security.ssl.CertificateMessage$T12CertificateConsumer.consume(Unknown
> Source) at java.base/sun.security.ssl.SSLHandshake.consume(Unknown Source)
> at java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source) at
> java.base/sun.security.ssl.HandshakeContext.dispatch(Unknown Source) at
> java.base/sun.security.ssl.TransportContext.dispatch(Unknown Source) at
> java.base/sun.security.ssl.SSLTransport.decode(Unknown Source) at
> java.base/sun.security.ssl.SSLSocketImpl.decode(Unknown Source) at
> java.base/sun.security.ssl.SSLSocketImpl.readHandshakeRecord(Unknown
> Source) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown
> Source) at java.base/sun.security.ssl.SSLSocketImpl.startHandshake(Unknown
> Source) at
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:436)
> at
> org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:384)
> at
> org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
> at
> org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)
> at
> org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)
> at
> org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
> at
> org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)
> at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) at
> org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
> at
> org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
> at
> org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
> at
> com.thoughtworks.go.agent.launcher.ServerBinaryDownloader.fetchUpdateCheckHeaders(ServerBinaryDownloader.java:104)

Re: [go-cd] HTTP invoker error in GoCD

2021-05-23 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Please add the GoCD and Java version you're using. Also if there were any
recent changes in the infrastructure related to the Load Balancer for GoCD
/ Server <--> Agent communication?

Also related issue on GoCD  -- https://github.com/gocd/gocd/issues/1341

Thanks,

On Mon, May 24, 2021 at 9:01 AM Sushma Gangaiah 
wrote:

> Hi All,
>
> Hope everyone are doing well.
> Builds were running completely fine till yesterday,but Since yesterday
> pipelines are failing with below error. What might be the issue? Any inputs
> please.
>
>
> Could not access HTTP invoker remote service at [
> https://go-server/go/remoting/remoteBuildRepository]; nested exception is
> javax.net.ssl.SSLException: Connection reset
>
> Regards,
> Sushma
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAHDZtpQaOmM1eta0Kmzu-kgdoO9deFF2F_4OEfMiY6CZRNSR1g%40mail.gmail.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyX5bmDAhfFJgb2u45dte6QUJpk_nsF%2BREL7o4F9WgOgw%40mail.gmail.com.


Re: [go-cd] GO CD - artifacts management in pipeline management

2021-05-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Check out a similar discussion at
https://groups.google.com/forum/#!topic/go-cd/HfOY_74OKhI/discussion.

Shameless plug: I've developed gocd-janitor to handle this exact problem.
It's available at https://github.com/ashwanthkumar/gocd-janitor. I've been
using this in production for well around 5 now.  Please check it out.

On Tue, May 18, 2021, 10:02 PM nitesh...@gmail.com 
wrote:

> Hi Team,
>
> i have a configuration in pipeline management which says it will delete
> the old artefects once the server reaches the  20 GBs of space.
>
> i am worried if this configuration will delete the old artefcts of the
> pipeline which i am using in LIVE environment as i am not aware the logic
> behind the deletion of artefects that how it deletes. please help
>
> Regards, Nitesh
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/784a834f-d597-491d-bfba-6ac886944985n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx9E%3DSn517%3DfZZK%2BPOhfQ_ZU6AWA%3DUioqq97LyJ1DNfqg%40mail.gmail.com.


Re: [go-cd] Actual compute resources for high load

2021-05-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
We use multiple GoCD instances, but one of our largest CI/CD setup uses a
*c5.4xlarge* instance on AWS. It has 32GB RAM, 16 Core CPU, 2x200GB SSD
disks attached. I should also add, we run close to 10 agents on the same
machine apart from the *go-server* process. It still uses H2 as the
backend. It holds ~600 pipelines, out of which we've more than 50% of them
run daily multiple times.

For this kind of setup, we run go-server with 4G Heap Size (Xmx) and it
just works.

Thanks,


On Tue, May 18, 2021 at 9:12 PM HUSSEIN KADIRI  wrote:

> Hi,
> I've set up a POC for GoCD to get a feel of it. I would like to know how
> much compute resource (cpu, men, disk) is used/needed.
> I've read the doc
> https://docs.gocd.org/current/installation/performance_tuning.html on
> GoCD performance. However, I'll also like to know what folks have in an
> actual setup.
>
> What's your cpu, memory, disk utilization for your setup and how many
> pipelines, agents and concurrent users do you have?
>
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAFD%2B7DmHMG%3DOZRRSbA_thL7X4Bb%2Bo3-Chn-3eoVYMSY6ti7CBA%40mail.gmail.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyPQRaR5T%3D9PAq2418kx-8zc%2B-2_5E_AS2CCqt6T%3D7O3g%40mail.gmail.com.


Re: [go-cd] GO CD - Agents not getting assigned

2021-05-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
go-server is usually a single process. Given the agents are anyways not
picking up the jobs, I don't see a problem with restarting. As long as they
have the same address when it comes back up, the agents would be able to
communicate back to the server.

PS: As always, please take a backup
 before
doing anything.

Thanks,


On Tue, May 18, 2021 at 1:45 PM nitesh...@gmail.com 
wrote:

> Thanks Ashwant,
>
> it will be any issue if we restart services of GO server ?
>
> On Tuesday, May 18, 2021 at 7:06:11 AM UTC+5:30 ashwant...@gmail.com
> wrote:
>
>> If you're on linux, sometimes some process could have deleted the files
>> but still have them open. That could be the reason for the difference in
>> free disk space that you see, via a process and `df / du` commands. This
>> answer
>> 
>> on Unix StackExchange might help you to figure out which process is holding
>> them and restarting that process should free up the disk space.
>>
>> To answer your other question, if there is no disk space GoCD can't
>> update the assignment information to it's Database (I'm assuming you're
>> using the local H2 database still) which might sometimes cause the agents
>> to not get assigned.
>>
>> Restarting the go-server might be the first step to see if that fixes the
>> issue, followed by the analysis of which process is holding up a lot of
>> open files. Good luck debugging the issue.
>>
>> Thanks,
>>
>> On Tue, May 18, 2021 at 12:21 AM nitesh...@gmail.com 
>> wrote:
>>
>>> Hi team ,
>>>
>>> i am not getting agent assigned to my pipes , further i have
>>> investigated and can see my GO server have 26 GBs of space left  and go
>>> server logs log has got 2 GBs of space. when i try to open the log file on
>>> go server it is poping up with Disk is full and can't open the file.
>>>
>>> is that can be a issue impacting my go pipes and so the agents ?
>>>
>>> Regards, Nitesh
>>>
>>> --
>>> 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/9136ff6b-3a2b-487d-b979-d9053dc1da9en%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/17bbb59d-6957-4a86-a41c-c6021a9d988dn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cw71uauxASdcnR3kuF%3DA4sWrket1v2o%2BiOaHgdKukuVYA%40mail.gmail.com.


Re: [go-cd] GO CD - Agents not getting assigned

2021-05-17 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
If you're on linux, sometimes some process could have deleted the files but
still have them open. That could be the reason for the difference in free
disk space that you see, via a process and `df / du` commands. This answer

on Unix StackExchange might help you to figure out which process is holding
them and restarting that process should free up the disk space.

To answer your other question, if there is no disk space GoCD can't update
the assignment information to it's Database (I'm assuming you're using the
local H2 database still) which might sometimes cause the agents to not get
assigned.

Restarting the go-server might be the first step to see if that fixes the
issue, followed by the analysis of which process is holding up a lot of
open files. Good luck debugging the issue.

Thanks,

On Tue, May 18, 2021 at 12:21 AM nitesh...@gmail.com 
wrote:

> Hi team ,
>
> i am not getting agent assigned to my pipes , further i have investigated
> and can see my GO server have 26 GBs of space left  and go server logs log
> has got 2 GBs of space. when i try to open the log file on go server it is
> poping up with Disk is full and can't open the file.
>
> is that can be a issue impacting my go pipes and so the agents ?
>
> Regards, Nitesh
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/9136ff6b-3a2b-487d-b979-d9053dc1da9en%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cxm04RrtVbUyiRjOm6OoJu0ZAxk%3DHsVnYC1QRb3KVp2iQ%40mail.gmail.com.


Re: [go-cd] API to trigger a pipeline

2021-05-10 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Check out the "Scheduling pipelines" section.

On Tue, May 11, 2021, 4:49 AM HUSSEIN KADIRI  wrote:

> Hi,
> My use case involves an external system triggering a CI workflow.
>
> I can trigger a pipeline by hitting the play button on the UI. I'm looking
> thru the API docs for pipelines:
> https://api.gocd.org/current/#pipelines
>
> I'm not seeing a corresponding way of triggering a pipeline via an API.
>
> Could someone point me in the right direction?
>
> Thanks
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAFD%2B7DnxU70OE%3DJfYYGntH7rvG2pdcQwx9%3Dh3hbq9aRWohjjDg%40mail.gmail.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cxq2tRcBWu5nnPTg440E1LRA3toOL%2BXmiRwJEWJEWJW8w%40mail.gmail.com.


Re: [go-cd] Configuring pipeline configuration repo

2021-05-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I've personally used one GoCD instance per team and eventually combined
them into one a few years later. There are few pros / cons with both, but
may be that's for another day.

For getting started the very first time, just setup things via UI. From
there on use the backup at periodic intervals (we use nightly) and use that
to restore and do one click deployment at a later point in time. Think of
each backup as a Snapshot of the system. You can do a fresh install of GoCD
and then resotre the latest backup and you're good to go.

On Sun, May 9, 2021, 11:19 AM HUSSEIN KADIRI  wrote:

> Or am I just using GoCD wrong? I know there's the concept of environments.
> Maybe we should have one GoCD server with an environment for each team
> instead of a  GoCD servers for a team.
>
> On Sat, May 8, 2021, 10:44 PM HUSSEIN KADIRI  wrote:
>
>> ok got it. This approach works if you're managing a few goCD servers but
>> it  doesn't really scale if you have to manage a lot of GoCD servers. We
>> have a setup where each team has their own CI system. It would be quite
>> painful managing each system this way. Also we aim to have one touch push
>> button deployments. Having to interact with the UI to set things up won't
>> quite work there.
>>
>> On Sat, May 8, 2021, 10:37 PM Marques Lee 
>> wrote:
>>
>>> Certainly possible that I misinterpreted your question. If it was more
>>> about “how do I get started to configure GoCD and learn to how make changes
>>> thereafter” I’d just start with the vanilla settings that the UI creates.
>>> There’s an option in the admin menu to view the current effective config
>>> xml and even edit it right there (validating any changes before saving).
>>> Making bulk changes in the UI is inefficient so sometimes we configure
>>> something once, open the config xml view/edit page, copy the xml our
>>> favorite code editor (eg, sublime, vscode) and use the editor’s advance
>>> text manipulation facilities to replicate config blocks to however many we
>>> need and then paste it back into config xml GoCD page to validate/save.
>>>
>>> On Sat, May 8, 2021 at 10:25 PM Marques Lee <
>>> marques@thoughtworks.com> wrote:
>>>
 Hmm, well you could always keep your cruise config in source control of
 course, just like you might do with any other service config.

 However, what we do internally for build.gocd.org is to utilize the
 backup feature of GoCD — it’s not just the server config that you’ll want
 to track, but also your data in the database that keeps track of pipeline
 history and such. The backup feature will save all of that for you to an
 archive. We persist them nightly to S3 IIRC. Our config folder and
 flyweight folders, etc are all bind-mounted into the container at
 provisioning.

 Is that the kind of info you're looking for?

 -Marques

 On Sat, May 8, 2021 at 10:07 PM HUSSEIN KADIRI 
 wrote:

> Thanks Marques.
> Curious what's the best/common/recommended practice on  configs around
> configuring from scratch and making incremental changes?
>
>
>
> On Fri, May 7, 2021, 5:40 PM Marques Lee 
> wrote:
>
>> I think that has been talked about for a long time (actually, in the
>> context of doing doing full server config as code) but hasn’t 
>> materialized
>> unfortunately :(. Probably won’t happen for a long time until someone 
>> gets
>> enough time on their hands (and maybe an external committer at that —
>> that’s actually how we initially gained support for pipelines as config).
>>
>> So while I’d love to tell you “yes we’re working on it” the reality
>> is nobody’s taken the time to truly explore it since XML does work and is
>> doing “good enough.” 🤷🏻‍♂️
>>
>> -Marques
>>
>> On Fri, May 7, 2021 at 5:36 PM HUSSEIN KADIRI 
>> wrote:
>>
>>> Yeah XML is a bummer :( Any plans of replacing it with yaml :)?
>>>
>>> On Fri, May 7, 2021, 5:33 PM Marques Lee <
>>> marques@thoughtworks.com> wrote:
>>>
 What you can do is configure things in the UI and then copy the
 resulting XML file.

 We also document all of this configuration here:

 https://docs.gocd.org/current/configuration/configuration_reference.html

 On Fri, May 7, 2021 at 5:31 PM Marques Lee <
 marques@thoughtworks.com> wrote:

> Oh I see, so server config.
>
> You can just create the cruise-config.xml file and provision that
> in the server config dir.
>
> Yes, I know it’s XML (yuck) and not something nicer, but it works.
> That’s where GoCD keeps its canonical configuration (the UI changes 
> result
> in direct changes to this xml file)
>
> -Marques
>
> On Fri, May 7, 2021 at 5:27 PM HUSSEIN KADIRI 
> wrote:
>
>> not referring 

Re: [go-cd] Create Pluggable SCM error?

2021-04-27 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I have never used a Github Enterprise setup before, but judging from the
Postman output and the error you get on the Validation screen. Doesn't the
API need any creds to access it? Because on the Postman I can see the owner
as "devops" (not sure if it's the default user for unauthenticated
requests)?

Also can you share the output of cURL command with a -v from the GoCD
Server machine?

Thanks,

On Tue, Apr 27, 2021 at 7:21 PM Emil  wrote:

> Ashwanth,
>
> I have copied the url (https://github/api/v3/repos/devops/python-build)
> from the 401 error message (reported in my earlier post) and I have 
> *successfully
> hit *the GitHub API
> 
> using postman & curl using the very same url reported by the error message:
> [image: gocd-disprove-401.png]
>
> It looks like there is no issue with the URL and the 401 error is
> misleading. I wonder if I have hit a configuration bug related to a private
> GitHub instance... ?!
>
> I shall wait to hear your thoughts and if there are any other trouble
> shooting steps I can take...
>
> Thanks again,
> Emil
>
> On Tuesday, 27 April 2021 at 13:21:48 UTC+1 Emil wrote:
>
>>  Hi Ashwanth,
>>
>> I appreciate your help and thanks for the great work on the plugin!
>>
>> I decided to start again from scratch re-configuring the plugin, hoping
>> to get across something obvious that I have missed. I only changed the
>> user/password with user/accessToken in the config. I got a CA cert error
>> because out github instance uses self-signed certificate and after
>> importing the cert to the java cacerts for both GoCD server and agent I got
>> error: Check connection failed. Reason(s): check connection failed. Server
>> returned HTTP response code: 401 for URL:
>> https://github/api/v3/repos/devops/python-build
>> [image: gocd-create-scm.png]
>>
>> The server log files (I hope these are the correct log files):
>>
>>- plugin-github.pr.status.log
>>
>> 2021-04-26 17:40:16,581 INFO  [qtp1648030342-37] GitHubProvider:72 -
>> Validating configuration
>> 2021-04-26 17:43:59,552 INFO  [qtp1648030342-30] GitHubProvider:72 -
>> Validating configuration
>>
>>- plugin-git-path.log
>>
>> 2021-04-27 09:47:50,742 INFO  [Thread-78] GitPathMaterialPlugin:72 -
>> Loading GitPathMaterialPlugin...
>> 2021-04-27 09:47:51,005 INFO  [Thread-78] HelperFactory:82 - Command line
>> git found [git version 2.31.1.windows.1]
>> 2021-04-27 09:47:51,006 INFO  [Thread-78] GitPathMaterialPlugin:82 - Type
>> is CMD
>> 2021-04-27 09:47:53,251 ERROR [Thread-78] JsonUtils:127 -
>> go.plugin-settings.get-configuration failed
>> 2021-04-27 09:47:53,292 ERROR [Thread-78] JsonUtils:127 -
>> go.plugin-settings.get-view failed
>>
>>
>> Here is the contents of my current ~/.github:
>>
>> endpoint=https://github/api/v3
>> login=build-user
>> accessToken=
>>
>> I couldn't find anything obvious apart from the git path config failure,
>> could this be an issue?
>>
>> Thank you for your help in advance
>> Emil
>>
>>
>> On Tuesday, 27 April 2021 at 06:43:02 UTC+1 ashwant...@gmail.com wrote:
>>
>>> Emil, I'm one of the authors of the Plugin you're running into issue
>>> with. On the README of the plugin, there would be a section
>>> 
>>> on configuring the Github Enterprise Endpoint. I'm assuming you've done
>>> that?
>>>
>>> If yes, can you please share some relevant sections of the plugin logs
>>> that might also be helpful in finding what's going wrong.
>>>
>>> Thanks,
>>>
>>> On Mon, Apr 26, 2021 at 9:13 PM Emil  wrote:
>>>
 Like you said, my call gets authenticated - I used HTTPS to test (used
 curl & postman) and I could get  the same error with 404 "Not Found"
 response, but only if the endpoint/url is wrong - I could reproduce the
 error using curl and postman, but ONLY when I enter invalid url/api
 endpoint...

 The only issue I had to solve with the manual testing is I had to
 DISABLE the cert validation, because our github instance is using self
 signed certificate - but this will not explain when I use SSH in GoCD so I
 guess GoCD could be sending the request to invalid endpoint/url!?

 Next, I'll try to trace the request, but meanwhile please suggest
 should you have any other ideas...

 Thanks!

 On Monday, 26 April 2021 at 09:40:26 UTC+1 srir...@gmail.com wrote:

> On Mon, Apr 26, 2021 at 4:08 PM Emil  wrote:
>
>> This is really odd if the connection is authenticated and it cannot
>> find the repo...
>> I have copied & pasted the URL from the actual repo. I am also using
>> the very same URL a material and I am puzzled what I might be doing 
>> wrong!?
>> It is internal Enterprise instance of GitHub and I am using SSH. My
>> URL is simply this: *git@github:test-repo/python-build.git *where github
>> is the hostname.
>>
>> For the confi

Re: [go-cd] Migration from 16.1.0 to 21.2.0 corrupted my h2db

2021-04-27 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Only way to recover is to use a backup. I'm hoping you took a backup before
attempting the upgrade.

If not, I would recommend going back to 21.2.0 and solve the issues.

PS: Also as a general rule, it is not recommended doing an upgrade across
5+ years of release.

Thanks,


On Tue, Apr 27, 2021 at 2:31 PM Nandha Kumar  wrote:

> Hello,
>
> I have my list of runs and the directories in the place. I have upgraded
> from 16.1.0 to 21.2.0
> and after starting the go-server it was throwing plenty of errors. So I
> reverted back to 16.1.0 and even there it is throwing the below error. When
> looking at the chats they say the H2db got corrupted, is there a mechanism
> to retrieve it ? having the files / directories that I have run in the
> machine.
>
> 04-20 04:44:42 jdbc[3]: exception
> org.h2.jdbc.JdbcSQLException: Table "PIPELINES" not found; SQL statement:
> SELECT name FROM pipelines WHERE locked = true [42102-168]
>
> Thanks in advance...
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/b18d12e6-b869-47c2-8c60-67f4385b6fd9n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxBGY0b1Y2JfaZ2Qvcaemk7K5Xi%3D1cF6VGR7s4bOUDOBg%40mail.gmail.com.


Re: [go-cd] Create Pluggable SCM error?

2021-04-26 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Emil, I'm one of the authors of the Plugin you're running into issue with.
On the README of the plugin, there would be a section

on configuring the Github Enterprise Endpoint. I'm assuming you've done
that?

If yes, can you please share some relevant sections of the plugin logs that
might also be helpful in finding what's going wrong.

Thanks,

On Mon, Apr 26, 2021 at 9:13 PM Emil  wrote:

> Like you said, my call gets authenticated - I used HTTPS to test (used
> curl & postman) and I could get  the same error with 404 "Not Found"
> response, but only if the endpoint/url is wrong - I could reproduce the
> error using curl and postman, but ONLY when I enter invalid url/api
> endpoint...
>
> The only issue I had to solve with the manual testing is I had to DISABLE
> the cert validation, because our github instance is using self signed
> certificate - but this will not explain when I use SSH in GoCD so I guess
> GoCD could be sending the request to invalid endpoint/url!?
>
> Next, I'll try to trace the request, but meanwhile please suggest should
> you have any other ideas...
>
> Thanks!
>
> On Monday, 26 April 2021 at 09:40:26 UTC+1 srir...@gmail.com wrote:
>
>> On Mon, Apr 26, 2021 at 4:08 PM Emil  wrote:
>>
>>> This is really odd if the connection is authenticated and it cannot find
>>> the repo...
>>> I have copied & pasted the URL from the actual repo. I am also using the
>>> very same URL a material and I am puzzled what I might be doing wrong!?
>>> It is internal Enterprise instance of GitHub and I am using SSH. My URL
>>> is simply this: *git@github:test-repo/python-build.git *where github is
>>> the hostname.
>>>
>>> For the configuration of the GitHub Pull Requests plugin I have added
>>> */api/v3/* to the hosname url as described in the documentation here
>>>  -
>>> Is there something similar for the pluggable scm?
>>>
>>
>> Here's what the test suite checks for:
>> https://github.com/ashwanthkumar/gocd-build-github-pull-requests/blob/84b6e83478107dcb2d7e5452435e8c25a019be6d/src/test/java/in/ashwanthkumar/gocd/github/provider/github/GHUtilsTest.java#L11
>>
>> You know, I'd responded earlier that the authentication had succeeded
>> after browsing the Github side code (via their library). Given that you are
>> using SSH, I'm not sure if Github is providing an informative response
>> code. I suggest that you see which of the test cases you can match with as
>> part of your tests.
>>
>>
>>>
>>>
>>> On Thursday, 22 April 2021 at 14:54:05 UTC+1 srir...@gmail.com wrote:
>>>
 On Thu, Apr 22, 2021 at 9:33 PM Emil  wrote:

> Hi Folks,
>
> I am unable to *Create Pluggable SCM* with "Github Pull Requests
> Builder" because of the following error:
> Check connection failed. Reason(s): check connection failed.
> {"message":"Not Found","documentation_url":"
> https://docs.github.com/rest/reference/repos#get-a-repository"}
>

 This is a response returned by the Github instance:
 https://docs.github.com/en/rest/reference/repos#get-a-repository

 Resource not found

 Status: 404 Not Found


 Your credentials are correct ( hence it authenticated you).

 Could you check the URL for typos in the the repo name?

 Could you independently verify the existence of and access to the
 repository via a web browser and/or via curl?


>
> My Github is an Enterprise instance on the local network. I have also
> configured the "Github Pull Requests status notifier" just in case as I
> thought it could be related.
>
> Any ideas how can I troubleshoot this please?
>
> Thanks for your help!
> Emil
>
> --
> 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/fd6d53dd-d7b2-4f94-a64b-1b8e45f360b7n%40googlegroups.com
> 
> .
>
 --
>>> 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/46cf3160-95a4-4993-98e5-3de11047a720n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" group.
> To un

Re: [go-cd] Automating Docker server accepting agents using API (and others)

2021-04-15 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
For the auto approval of agents you might want to check the manual at
https://docs.gocd.org/current/advanced_usage/agent_auto_register.html


On Thu, Apr 15, 2021, 7:15 PM Nikola Radovanovic 
wrote:

> Hi,
> today I played a little bit with GoCD and ended up creating one Docker
> compose with PostgreSql, GoCD server and two GoCD agents.
>
> Now I have couple of questions, but first I would like to know if it is
> possible using the API (or any other means) to accept automatically both
> (or more agents) running on my local Docker network? In case docker is
> restarted, there will be new agents started and I would like not to have to
> accept them manually.
>
> Also, couple of others:
>
>1. I guess LDAP is supported via plugin and that it can be configured
>using API
>2. Is it possible to have conditional builds, for example - in case
>unit-tests fails, break the build. If succeeds, increment version and
>continue (but don't commit version to Git)
>3. Are private Docker, PyPI and Git repositories supported
>
> Thank you kindly.
>
> Best regards
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/d9b6e771-f02c-4905-bc67-3725f2ddeae3n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwLPCeYR1N4bBjjpDa%2B8Qx%2Bp9ipFLV3scAFKPL4rjQ5XA%40mail.gmail.com.


Re: [go-cd] Remove pipeline directory on agent after completion

2021-03-05 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
AFAIK there isn't any feature so far in GoCD. We currently use custom
script to delete all the other pipelines on an Agent by running a cleanup
pipeline periodically. Since each agent is exclusive to a pipeline run, you
can safely delete all the other pipelines in the working directory via the
cleanup pipeline without breaking any builds / deployment.

Thanks,


On Fri, Mar 5, 2021 at 11:13 PM Joel Bodenmann  wrote:

> Is there (by now) a feature available that allows to configure either on a
> per-agent or a per-pipeline level the behavior that a pipeline directory is
> automatically removed from the agent after finishting the pipeline job (in
> all cases, not just on success)?
>
> I believe that this older thread is asking for the same:
> https://groups.google.com/g/go-cd/c/fhlYvVcg5H4
>
>
> Best regards,
> ~ Joel
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/a1f351e5-c717-4153-be6e-7a1cfd77aa2dn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyAA2KDF6RArtqH-fN1m8og73rzK3g2JQ-nDhWJBsHE4g%40mail.gmail.com.


Re: [go-cd] How to get all environment variables of a running task?

2021-01-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Okay, I just realised from this post once again. I don't think there is any
way to get only those values that are set directly, instead if you know
what those values are then you can write a script to write these values
into a text file and use that as a artifact for the remaining Tasks.

Having said that I don't know why would you need a list of what are all
available and not specifically look for what's needed?

On Sat, 30 Jan, 2021, 21:14 zuk...@gmail.com,  wrote:

> Hi all,
>
> I am deploying an image to AWS ECS using task definitions. In order for me
> to inject the environment variables from Go into the task definition, I
> require all the environment variables that Go sets when a pipeline is
> running.
>
> For instance:
> [image: envvars.png]
> I want to get all those environment variables. I am calling a bash script
> after env vars are set above. I have tried using linux'
> "/proc//environ" which works successfully, but it gets other system
> process variables, that I would have to filter for, which can create a
> brittle deployment process, and comes with maintenance overhead.
>
> How do I extract those environment variables that Go CI/CD sets as
> pictured above?
>
> Thank you.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/e944146e-e37f-4316-839d-65a06dc4f003n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx1O6ppdgojhwYHZbdb2zZkWBHtu5zCTtFsO8K%3D5LEevw%40mail.gmail.com.


Re: [go-cd] How to get all environment variables of a running task?

2021-01-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
The process environment variables overrides the system variables (if any).
If you're interested only in the environment variables that are shown above
you don't have to worry about value being changed or overwritten by another
process because GoCD uses *bash -c* to run tasks with the new variables
injected as part of the run, so these values can't be changed from outside.

On Sat, 30 Jan, 2021, 21:32 zuk...@gmail.com,  wrote:

> From my understanding, "env" prints out all the system environment
> variables, rather than the process environment variables. If I used "env"
> and a parallel job was running, wouldn't it overwrite the environment
> variables (non thread-safe env vars)?
>
> On Saturday, January 30, 2021 at 3:48:59 PM UTC ashwant...@gmail.com
> wrote:
>
>> If you're on a Linux instance try using the *env* command.
>>
>> On Sat, 30 Jan, 2021, 21:14 zuk...@gmail.com,  wrote:
>>
>>> Hi all,
>>>
>>> I am deploying an image to AWS ECS using task definitions. In order for
>>> me to inject the environment variables from Go into the task definition, I
>>> require all the environment variables that Go sets when a pipeline is
>>> running.
>>>
>>> For instance:
>>> [image: envvars.png]
>>> I want to get all those environment variables. I am calling a bash
>>> script after env vars are set above. I have tried using linux'
>>> "/proc//environ" which works successfully, but it gets other system
>>> process variables, that I would have to filter for, which can create a
>>> brittle deployment process, and comes with maintenance overhead.
>>>
>>> How do I extract those environment variables that Go CI/CD sets as
>>> pictured above?
>>>
>>> Thank you.
>>>
>>> --
>>> 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/e944146e-e37f-4316-839d-65a06dc4f003n%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/1b037e48-0990-4f1d-8535-6cdae7941b32n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cw3PmCVf66XFEGZAq_i5KzhA2ugdzTsMb2sZ%2BCDiAtfTQ%40mail.gmail.com.


Re: [go-cd] How to get all environment variables of a running task?

2021-01-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
If you're on a Linux instance try using the *env* command.

On Sat, 30 Jan, 2021, 21:14 zuk...@gmail.com,  wrote:

> Hi all,
>
> I am deploying an image to AWS ECS using task definitions. In order for me
> to inject the environment variables from Go into the task definition, I
> require all the environment variables that Go sets when a pipeline is
> running.
>
> For instance:
> [image: envvars.png]
> I want to get all those environment variables. I am calling a bash script
> after env vars are set above. I have tried using linux'
> "/proc//environ" which works successfully, but it gets other system
> process variables, that I would have to filter for, which can create a
> brittle deployment process, and comes with maintenance overhead.
>
> How do I extract those environment variables that Go CI/CD sets as
> pictured above?
>
> Thank you.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/e944146e-e37f-4316-839d-65a06dc4f003n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwMG%2BSUH_pf1dTTwJvtBn1Zq4O4Lg-9JUKmDDSUYhN6fQ%40mail.gmail.com.


Re: [go-cd] Error Starting go-agent version-18.3.0-6540

2021-01-29 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
>From the stacktrace,

127.0.0.1:8154 [/127.0.0.1] failed: Connection refused (Connection refused)


It looks like the GoCD Server is not running on the same server as the
agents. Is the server running when you're starting the agents?



On Fri, Jan 29, 2021 at 8:40 PM Sathish Ravi 
wrote:

> Hi,
>
> Please find the go-agent logfile.
>
> On Wednesday, January 27, 2021 at 8:27:12 AM UTC+5:30 ashwant...@gmail.com
> wrote:
>
>> It would help if you can share the stacktrace or logs from the go-agent
>> that is failing.
>>
>>
>>
>> On Tue, Jan 26, 2021 at 6:02 PM Sathish Ravi 
>> wrote:
>>
>>> Hi,
>>>
>>> Gocd agent not starting after reinstalled in the server.
>>>
>>> Server setup failing in the AWS opsworks instance
>>>
>>> *[2021-01-26T07:03:52+00:00] INFO: Processing
>>> directory[/var/log/go-agent-1] action create (gocd::application line 117)*
>>> *[2021-01-26T07:03:52+00:00] INFO: Processing service[go-server] action
>>> enable (gocd::services line 1)*
>>> *[2021-01-26T07:03:52+00:00] INFO: Processing service[go-server] action
>>> start (gocd::services line 1)*
>>> *[2021-01-26T07:04:22+00:00] INFO: service[go-server] started*
>>> *[2021-01-26T07:04:22+00:00] INFO: Processing service[go-agent] action
>>> enable (gocd::services line 5)*
>>> *[2021-01-26T07:04:22+00:00] INFO: Processing service[go-agent] action
>>> start (gocd::services line 5)*
>>>
>>>
>>> **
>>> *Error executing action `start` on resource 'service[go-agent]'*
>>>
>>> **
>>>
>>> *Mixlib::ShellOut::ShellCommandFailed*
>>> **
>>> *Expected process to exit with [0], but received '255'*
>>> * Begin output of /sbin/service go-agent start *
>>> *STDOUT: Error starting Go Agent.*
>>> *STDERR: *
>>> * End output of /sbin/service go-agent start *
>>> *Ran /sbin/service go-agent start returned 255*
>>>
>>> *Resource Declaration:*
>>> *-*
>>> *# In
>>> /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/cookbooks/gocd/recipes/services.rb*
>>>
>>> *5: service 'go-agent' do*
>>> *6: action [:enable, :start]*
>>> *7: end*
>>> *8: *
>>>
>>> *Compiled Resource:*
>>> *--*
>>> *# Declared in
>>> /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/cookbooks/gocd/recipes/services.rb:5:in
>>> `from_file'*
>>>
>>> *service("go-agent") do*
>>> *action [:enable, :start]*
>>> *supports {:restart=>nil, :reload=>nil, :status=>nil}*
>>> *retries 0*
>>> *retry_delay 2*
>>> *default_guard_interpreter :default*
>>> *service_name "go-agent"*
>>> *enabled true*
>>> *pattern "go-agent"*
>>> *declared_type :service*
>>> *cookbook_name "gocd"*
>>> *recipe_name "services"*
>>> *end*
>>>
>>> *Platform:*
>>> *-*
>>> *x86_64-linux*
>>>
>>> *[2021-01-26T07:04:37+00:00] INFO: Running queued delayed notifications
>>> before re-raising exception*
>>> *[2021-01-26T07:04:37+00:00] INFO: template[/etc/go/cruise-config.xml]
>>> sending restart action to service[go-server] (delayed)*
>>> *[2021-01-26T07:04:37+00:00] INFO: Processing service[go-server] action
>>> restart (gocd::services line 1)*
>>> *[2021-01-26T07:05:14+00:00] INFO: service[go-server] restarted*
>>> *[2021-01-26T07:05:14+00:00] ERROR: Running exception handlers*
>>> *[2021-01-26T07:05:14+00:00] ERROR: Exception handlers complete*
>>> *[2021-01-26T07:05:14+00:00] FATAL: Stacktrace dumped to
>>> /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/chef-stacktrace.out*
>>> *[2021-01-26T07:05:14+00:00] FATAL: Please provide the contents of the
>>> stacktrace.out file if you file a bug report*
>>> *[2021-01-26T07:05:14+00:00] ERROR: service[go-agent] (gocd::services
>>> line 5) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected
>>> process to exit with [0], but received '255'*
>>> * Begin output of /sbin/service go-agent start *
>>> *STDOUT: Error starting Go Agent.*
>>> *STDERR: *
>>> * End output of /sbin/service go-agent start *
>>> *Ran /sbin/service go-agent start returned 255*
>>> *[2021-01-26T07:05:14+00:00] FATAL:
>>> Chef::Exceptions::ChildConvergeError: Chef run process exited
>>> unsuccessfully (exit code 1)*
>>>
>>> --
>>> 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/40a387f7-227f-4841-bc76-1108f1dbd4e1n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "go-cd" g

Re: [go-cd] Error Starting go-agent version-18.3.0-6540

2021-01-26 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
It would help if you can share the stacktrace or logs from the go-agent
that is failing.



On Tue, Jan 26, 2021 at 6:02 PM Sathish Ravi 
wrote:

> Hi,
>
> Gocd agent not starting after reinstalled in the server.
>
> Server setup failing in the AWS opsworks instance
>
> *[2021-01-26T07:03:52+00:00] INFO: Processing
> directory[/var/log/go-agent-1] action create (gocd::application line 117)*
> *[2021-01-26T07:03:52+00:00] INFO: Processing service[go-server] action
> enable (gocd::services line 1)*
> *[2021-01-26T07:03:52+00:00] INFO: Processing service[go-server] action
> start (gocd::services line 1)*
> *[2021-01-26T07:04:22+00:00] INFO: service[go-server] started*
> *[2021-01-26T07:04:22+00:00] INFO: Processing service[go-agent] action
> enable (gocd::services line 5)*
> *[2021-01-26T07:04:22+00:00] INFO: Processing service[go-agent] action
> start (gocd::services line 5)*
>
>
> **
> *Error executing action `start` on resource 'service[go-agent]'*
>
> **
>
> *Mixlib::ShellOut::ShellCommandFailed*
> **
> *Expected process to exit with [0], but received '255'*
> * Begin output of /sbin/service go-agent start *
> *STDOUT: Error starting Go Agent.*
> *STDERR: *
> * End output of /sbin/service go-agent start *
> *Ran /sbin/service go-agent start returned 255*
>
> *Resource Declaration:*
> *-*
> *# In
> /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/cookbooks/gocd/recipes/services.rb*
>
> *5: service 'go-agent' do*
> *6: action [:enable, :start]*
> *7: end*
> *8: *
>
> *Compiled Resource:*
> *--*
> *# Declared in
> /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/cookbooks/gocd/recipes/services.rb:5:in
> `from_file'*
>
> *service("go-agent") do*
> *action [:enable, :start]*
> *supports {:restart=>nil, :reload=>nil, :status=>nil}*
> *retries 0*
> *retry_delay 2*
> *default_guard_interpreter :default*
> *service_name "go-agent"*
> *enabled true*
> *pattern "go-agent"*
> *declared_type :service*
> *cookbook_name "gocd"*
> *recipe_name "services"*
> *end*
>
> *Platform:*
> *-*
> *x86_64-linux*
>
> *[2021-01-26T07:04:37+00:00] INFO: Running queued delayed notifications
> before re-raising exception*
> *[2021-01-26T07:04:37+00:00] INFO: template[/etc/go/cruise-config.xml]
> sending restart action to service[go-server] (delayed)*
> *[2021-01-26T07:04:37+00:00] INFO: Processing service[go-server] action
> restart (gocd::services line 1)*
> *[2021-01-26T07:05:14+00:00] INFO: service[go-server] restarted*
> *[2021-01-26T07:05:14+00:00] ERROR: Running exception handlers*
> *[2021-01-26T07:05:14+00:00] ERROR: Exception handlers complete*
> *[2021-01-26T07:05:14+00:00] FATAL: Stacktrace dumped to
> /var/chef/runs/0d2f1572-10a3-496b-a859-381be040b531/local-mode-cache/cache/chef-stacktrace.out*
> *[2021-01-26T07:05:14+00:00] FATAL: Please provide the contents of the
> stacktrace.out file if you file a bug report*
> *[2021-01-26T07:05:14+00:00] ERROR: service[go-agent] (gocd::services line
> 5) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to
> exit with [0], but received '255'*
> * Begin output of /sbin/service go-agent start *
> *STDOUT: Error starting Go Agent.*
> *STDERR: *
> * End output of /sbin/service go-agent start *
> *Ran /sbin/service go-agent start returned 255*
> *[2021-01-26T07:05:14+00:00] FATAL: Chef::Exceptions::ChildConvergeError:
> Chef run process exited unsuccessfully (exit code 1)*
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/40a387f7-227f-4841-bc76-1108f1dbd4e1n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzA3Qo_9gteyUuSJHyKW-a1%3DHGEK4YG5tYpgkcbSuQyaQ%40mail.gmail.com.


Re: [go-cd] Mark Ready for Release - Go Pipes

2021-01-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
One way is to have a marker stage at the end of the pipeline (say Pipeline
A) that is set to manual.

Now assuming a Pipeline B (high environment) is pulling the artifacts (or
traversing through) from Pipeline A, we set it to be dependent on this
manual stage. So unless the manual stage is approved on Pipeline A (which
I'm hoping you would do as part of the release), Pipeline B will continue
to pick the last approved version.

Thanks,


On Sun, Jan 17, 2021 at 3:11 PM Nitesh Kumar  wrote:

> Hi ,
>
> Do we have any option by which we can mark ready for release to multiple
> GO Pipes in one go.
>
> Ready for Release - if we run this stage our Pipe get ready for higher
> environment
>
> OR
>
> Do we have any option to trigger the stage of pipeline ?
> Request you to please help on this
>
>
>
> --
> Thanks&Regards
>
> Nitesh kumar
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CAKns_UkZG7i%3DizLxf%2B_Nn%2BLdF8merch0m7zmM0vtHsyvQ-kCxg%40mail.gmail.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CweiF_knLWYStxdZ82_4Am4-x6txfHuskXVGV7Rt1Og9A%40mail.gmail.com.


Re: [go-cd] Global Variable - GO CD

2021-01-09 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
You can check the GoCD APIs online at https://api.gocd.org/ (against the
corresponding version of your GoCD Server).

If you're planning to automate your way through,
https://github.com/gocd-contrib/gomatic might be of your interest.


On Sun, Jan 10, 2021 at 12:38 PM Nitesh Kumar 
wrote:

> Thanks,
>
> So, do we have any endpoint which updates the pipeline ?
>
> Regards, Nitesh
>
> On Sat, Jan 9, 2021 at 3:24 AM Marques Lee 
> wrote:
>
>> When the server needs to check a material in the flyweight directory to
>> determine whether it should schedule pipelines, it doesn’t bind environment
>> variables, most likely because environment variables are scoped to a single
>> pipeline. On the other hand, materials aren’t necessarily unique to a
>> pipeline. The same material can be used in other pipelines and contexts
>> (eg, config repo) so the material service wouldn’t have defined behavior
>> for other uses to bind environment variables, which are scoped to a single
>> pipeline. At least that’s what I am inferring off the top of my head
>> without digging into the code too much.
>>
>> So, unfortunately, there’s no solution that is both quick and long-term
>> that I’m an think of. The quick one is bulk editing your config xml. The
>> long term is reimplementing in pipelines as code so that you can apply
>> changes to multiple pipeline config a very easily.
>>
>> On Fri, Jan 8, 2021 at 11:39 AM Nitesh Kumar 
>> wrote:
>>
>>> Hi,
>>>
>>> Thanks,  I can editing config.xml but doing everytime for each change
>>> number would be really horrible 😞
>>>
>>> Any other ideas?
>>>
>>> It looks a wiered case that we can't use env variables in materials even
>>> my pipeline does exist in the same environment
>>>
>>> On Fri, 8 Jan 2021, 21:38 Marques Lee,  wrote:
>>>
 But, since that's a lot of work and you need a solution in the
 immediate, I think your *only* option is to bulk-edit the config XML
 and do this with a good text editor.

 On Friday, January 8, 2021 at 8:05:51 AM UTC-8 Marques Lee wrote:

> Actually, nevermind on the environment variable - I don't think you
> can use those in materials, and you're wanting to use it there it seems.
> Using pipelines as code would really be the best option, IMO.
>
> On Friday, January 8, 2021 at 7:57:11 AM UTC-8 Marques Lee wrote:
>
>> I would just do what Ashwanth suggested with Environments: put your
>> pipelines (and agents!) in the same environment and then you can apply
>> these (e.g., environment variables) globally to all pipelines in that
>> environment.
>>
>> On Friday, January 8, 2021 at 6:37:26 AM UTC-8 nitesh...@gmail.com
>> wrote:
>>
>>> Thanks,
>>> Yes, these pipeline already exists.
>>>
>>> but updating the config XML every time when we will have new change
>>> from client will be risky.
>>>
>>> request you to please help another way around ?
>>>
>>> On Friday, January 8, 2021 at 7:05:47 PM UTC+5:30
>>> ashwant...@gmail.com wrote:
>>>
 IMHO, Environment in GoCD helps in grouping pipelines to provide
 environment related settings (via environment variables) or agents 
 (that
 have environment specific access / configurations). A variable used in 
 the
 pipeline's material isn't specific to an environment and also 
 Parameters
 are specific to a pipeline. So much so, that when a pipeline is saved 
 all
 the parameters that are referred within (either on config / jobs / 
 stages)
 should be available else the config validation would fail and the new
 pipeline changes wouldn't get saved.

 For your current situation, I do have a few suggestions:
 1. If you're creating the pipelines right now, I would recommend
 using the YAML / JSON DSL which would make your life easier. You can 
 find
 and replace the values quickly.
 2. If these 100s of pipelines already exist, During an off-peak
 time / with maintenance mode enabled -- You can import the config.xml
 locally and find-replace the material path and import the new config 
 back
 as a one time migration.

 Thanks,


 On Fri, Jan 8, 2021 at 6:45 PM nitesh...@gmail.com <
 nitesh...@gmail.com> wrote:

> Thanks ,
>
> but i can't see any option to set parameter global to the
> environment , do we have any other option ?
>
> i have got 100 pipes, where having same TFS path but dynamic
> change number, which needs to concatenated with TFS path   , so we 
> want to
> execute 100 pipes in one for different -different change number on 
> adhoc
> basis.
>
> On Friday, January 8, 2021 at 6:32:24 PM UTC+5:30
> ashwant...@gmail.com wrote:
>
>> 

Re: [go-cd] Global Variable - GO CD

2021-01-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
IMHO, Environment in GoCD helps in grouping pipelines to provide
environment related settings (via environment variables) or agents (that
have environment specific access / configurations). A variable used in the
pipeline's material isn't specific to an environment and also Parameters
are specific to a pipeline. So much so, that when a pipeline is saved all
the parameters that are referred within (either on config / jobs / stages)
should be available else the config validation would fail and the new
pipeline changes wouldn't get saved.

For your current situation, I do have a few suggestions:
1. If you're creating the pipelines right now, I would recommend using the
YAML / JSON DSL which would make your life easier. You can find and replace
the values quickly.
2. If these 100s of pipelines already exist, During an off-peak time / with
maintenance mode enabled -- You can import the config.xml locally and
find-replace the material path and import the new config back as a one time
migration.

Thanks,


On Fri, Jan 8, 2021 at 6:45 PM nitesh...@gmail.com 
wrote:

> Thanks ,
>
> but i can't see any option to set parameter global to the environment , do
> we have any other option ?
>
> i have got 100 pipes, where having same TFS path but dynamic change
> number, which needs to concatenated with TFS path   , so we want to execute
> 100 pipes in one for different -different change number on adhoc basis.
>
> On Friday, January 8, 2021 at 6:32:24 PM UTC+5:30 ashwant...@gmail.com
> wrote:
>
>> You could use Parameters for that purpose.
>>
>> On Fri, 8 Jan, 2021, 18:13 nitesh...@gmail.com, 
>> wrote:
>>
>>> Hi,
>>>
>>> is there any way we can use a lobal variable and use that variable in my
>>> GO pipe Material path - like TFS repo path
>>>
>>> This is really urgent , and quick help will be very much appreciated.
>>> Thanks in advance
>>>
>>> Regards, Nitesh
>>>
>>> --
>>> 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/aee436d7-9c27-4005-9d35-070aed4e048an%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/80994bd0-3d71-4a8d-9bd6-a929c01bada3n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Czdo8JGUe3HCetvp3u77aHURHjSSTfnE-9G9sqVbpEH1Q%40mail.gmail.com.


Re: [go-cd] Global Variable - GO CD

2021-01-08 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
You could use Parameters for that purpose.

On Fri, 8 Jan, 2021, 18:13 nitesh...@gmail.com, 
wrote:

> Hi,
>
> is there any way we can use a lobal variable and use that variable in my
> GO pipe Material path - like TFS repo path
>
> This is really urgent , and quick help will be very much appreciated.
> Thanks in advance
>
> Regards, Nitesh
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/aee436d7-9c27-4005-9d35-070aed4e048an%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Czr-m-4excxybPAD%2BS0NrKHr186Uj7Sh526914%2BJ2crCQ%40mail.gmail.com.


Re: [go-cd] i want set environment variable GO_PIPELINE_COUNTER in task command

2020-12-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
GoCD's Agent architecture doesn't run the entire job (within a stage) in a
single shell. So if you export / set an environment variable in one task
and try to access it in the next. It wouldn't work. I would suggest using a
BAT/PS script (if you're on Windows) or shell script (if you're on Linux /
Mac) to automate your workflows. Also it is a good practice to keep the job
specific sequence of tasks outside GoCD so your CI/CD workflow is not
tightly coupled to your CI/CD system.

Thanks,


On Sun, Dec 27, 2020 at 10:24 PM gdlai cn  wrote:

> i want set environment variable *GO_PIPELINE_COUNTER* in task command,
> but it dont't work.
>
> at task command,i try like this: *${GO_PIPELINE_COUNTER},*or
> *%GO_PIPELINE_COUNTER%*, but all not work.
>
> how to do?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/cafc5439-b49f-4202-b578-d486baefa388n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwytWt3EioZmWJhXfSoFBQ4tVjY%2BW-xG6NTBVE2-bw5GA%40mail.gmail.com.


Re: [go-cd] gocd slack build notifier

2020-12-30 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Hello Rajesh,

Thanks for using the Slack plugin. The error comes up when the
go_notify.conf is not found / accessible by the plugin. Please check the
README

on where to place the file (inside the docker container). Note that the
plugin configuration (on the GoCD Server's plugin page does not work yet).

Thanks,


On Wed, Dec 30, 2020 at 11:29 PM rajesh bathula  wrote:

> Hi All/@ashwanthkumar
> 
>
> Trying to setup slack notification on GOCD server ("v20.8.0") running in
> EC2 as docker.
> I have added jar into external plugin and added conf into plugin , to add
> i have added in few places to test but all resulting in
>
> https://github.com/ashwanthkumar/gocd-slack-build-notifier/releases/download/v2.0.2/gocd-slack-notifier-2.0.2.jar
> "Class [GoNotificationPlugin] is annotated with @Extension but cannot be
> constructed. Reason: java.lang.RuntimeException: Unable to find
> go_notify.conf. Please make sure you've set it up right.. No extensions
> found in this plugin. Please check for @Extension annotations"
>
> Thanks in advance!
> Rajesh B.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/e5ca2e7e-fc91-4f45-a469-5033621b2df8n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyBo-GjG1mZZBSC9qe3kawkvgCQcKWqrZejrSViodW41w%40mail.gmail.com.


Re: [go-cd] Re: Update from GoCD bootstrap steering committee

2020-12-18 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Thanks Joel, I'll discuss with other members and connect with you offline
to discuss further on this.

Thanks,


On Fri, Dec 18, 2020 at 7:05 PM Joel Bodenmann  wrote:

> Hi,
>
> I am fairly new to GoCD (started using it a couple of weeks ago, first
> privately and now also in our company). Therefore, I do not have a lot of
> valuable input for this.
> Furthermore, due to the current economical situation we're unable to
> provide direct funding. However, what can be provided is server power:
> We're currently sitting on a lot of servers standing still. This is not
> expected to change in the near or mid-term future and long term would most
> likely require upgrades anyway. As such, our company would be able to
> provide computing and storage to the project if that is of any help.
>
> Ready-to-go resources up to:
> - 64 CPU cores
> - 256GB RAM
> - 10TB of storage
> - 1gbps/1gbps connectivity (location: Switzerland)
>
> Please let me know if this is of any interest and I'll get in touch via
> business-email.
> Disclaimer: This is of course not a binding offering. We're happy to work
> something out but at this point I can't make any hard promises.
>
>
> Best regards,
> ~ Joel Bodenmann
>
> On Thursday, December 17, 2020 at 9:20:35 AM UTC+1 ashwant...@gmail.com
> wrote:
>
>> Hello everyone,
>>
>> We wanted to give you an update about how development work on GoCD is
>> likely to operate in the future. As you might remember, ThoughtWorks
>> announced
>>  they
>> were no longer going to focus on supporting GoCD as a project. A bootstrap
>> steering committee was set up earlier in the year (see announcement
>> ).
>>
>> As the bootstrap steering committee, we wanted to give you an update
>> about progress towards finding a longer-term vendor-neutral home for GoCD.
>> We would also like to reassure you that there is no intention that
>> development on GoCD will end. The intention is that GoCD will be handed
>> over to the community, who have been more and more involved over the past
>> few years. The committee has been working out how best to achieve this
>> transition. This committee’s sole purpose is to advise ThoughtWorks on what
>> the best option is for GoCD’s future. We have been meeting monthly and
>> talking to industry contacts to explore options. We are now close to
>> putting in place the next steps.
>>
>> We are planning to recommend transferring the ownership and governance of
>> the GoCD project to an open-source foundation, very likely the Linux
>> Foundation. There is a spectrum of open-source project models all the way
>> from fending for itself on GitHub, to sponsorware, to being part of a
>> foundation. We feel that the foundation option provides the most stable
>> long-term home for GoCD. A move to a foundation does not automatically
>> change how GoCD is developed. GoCD’s longevity and vibrance depends
>> solely on the community, which is all of us. Please consider how you can
>> be more closely involved with the technical and non-technical aspects of
>> the GoCD community.
>>
>> One aspect of this move we carefully considered was about the cost of the
>> build and test infrastructure, which is the most significant ongoing cost
>> of GoCD. We have applied for cloud credits from AWS to support the
>> infrastructure which builds and distributes GoCD. If this is accepted, this
>> mitigates the immediate need for finding funding. However, apart from a
>> move to a foundation, the funding for infrastructure needs to be planned
>> for.
>>
>> Based on this, we have some asks from you:
>>
>>
>>1.
>>
>>A requirement to move to a foundation includes statements of support
>>from organisations and individuals in the community. If your organisation
>>uses GoCD, and are willing to provide a statement of support, please reach
>>out to Aravind SV (ara...@thoughtworks.com) who is helping coordinate
>>this.
>>
>>2.
>>
>>If your organisation is willing to help fund part of GoCD’s budget
>>going forward, even if it is a small amount, please let Aravind know about
>>your intention. This will be important for us to continue conversations
>>with the foundations, planning for a sustainable future for GoCD.
>>
>>
>> In the new year we will issue a press release detailing our plans more
>> fully. Happy holidays!
>>
>> Regards,
>>
>> GoCD’s bootstrap steering committee
>>
>> Members:
>>
>>-
>>
>>Ashwanth Kumar
>>-
>>
>>Birgitta Boeckeler
>>-
>>
>>Ketan Padegaonkar
>>-
>>
>>Mark Crossfield
>>-
>>
>>Tomasz Setkowski
>>
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg

[go-cd] Update from GoCD bootstrap steering committee

2020-12-17 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Hello everyone,

We wanted to give you an update about how development work on GoCD is
likely to operate in the future. As you might remember, ThoughtWorks
announced 
they were no longer going to focus on supporting GoCD as a project. A
bootstrap steering committee was set up earlier in the year (see
announcement
).

As the bootstrap steering committee, we wanted to give you an update about
progress towards finding a longer-term vendor-neutral home for GoCD. We
would also like to reassure you that there is no intention that development
on GoCD will end. The intention is that GoCD will be handed over to the
community, who have been more and more involved over the past few years.
The committee has been working out how best to achieve this transition.
This committee’s sole purpose is to advise ThoughtWorks on what the best
option is for GoCD’s future. We have been meeting monthly and talking to
industry contacts to explore options. We are now close to putting in place
the next steps.

We are planning to recommend transferring the ownership and governance of
the GoCD project to an open-source foundation, very likely the Linux
Foundation. There is a spectrum of open-source project models all the way
from fending for itself on GitHub, to sponsorware, to being part of a
foundation. We feel that the foundation option provides the most stable
long-term home for GoCD. A move to a foundation does not automatically
change how GoCD is developed. GoCD’s longevity and vibrance depends solely
on the community, which is all of us. Please consider how you can be more
closely involved with the technical and non-technical aspects of the GoCD
community.

One aspect of this move we carefully considered was about the cost of the
build and test infrastructure, which is the most significant ongoing cost
of GoCD. We have applied for cloud credits from AWS to support the
infrastructure which builds and distributes GoCD. If this is accepted, this
mitigates the immediate need for finding funding. However, apart from a
move to a foundation, the funding for infrastructure needs to be planned
for.

Based on this, we have some asks from you:


   1.

   A requirement to move to a foundation includes statements of support
   from organisations and individuals in the community. If your organisation
   uses GoCD, and are willing to provide a statement of support, please reach
   out to Aravind SV (arav...@thoughtworks.com) who is helping coordinate
   this.

   2.

   If your organisation is willing to help fund part of GoCD’s budget going
   forward, even if it is a small amount, please let Aravind know about your
   intention. This will be important for us to continue conversations with the
   foundations, planning for a sustainable future for GoCD.


In the new year we will issue a press release detailing our plans more
fully. Happy holidays!

Regards,

GoCD’s bootstrap steering committee

Members:

   -

   Ashwanth Kumar
   -

   Birgitta Boeckeler
   -

   Ketan Padegaonkar
   -

   Mark Crossfield
   -

   Tomasz Setkowski

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyRxp6XUJBJpr%3Dhe_HFp-_MmUs0_nv9JKEZ%3DNZtNCYKEg%40mail.gmail.com.


Re: [go-cd] Public build status query

2020-12-03 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I forgot to add that I'm not using any of it now in production. Having said
that, I would be happy to collaborate on this if interested.

On Thu, 3 Dec, 2020, 19:32 Ashwanth Kumar, 
wrote:

> If it helps, I tried doing this a few years back. May be these might serve
> as a basis for what you want to achieve
>
> https://github.com/ashwanthkumar/gocd-build-badge-notifier
>
> https://github.com/ashwanthkumar/gocd-build-badge-server
>
> Some practical problems are that GoCD installations are generally not
> exposed to public and I was using GitHub at that time and their cache
> system wouldn't pick up the image for Readme. That's why the build server
> that collects this and renders the image. If I were to do it today and
> everything is inside a corp network, I would run an embedded server inside
> the plugin and see if we could expose the images from that instead. To
> avoid additional infrastructure.
>
>
>
> On Thu, 3 Dec, 2020, 19:06 Joel Bodenmann,  wrote:
>
>> Hello folks,
>>
>> Coming from Jenkins I am used to the embeddable build status
>>  which exposes the
>> build status embleme to the public. Looks like this
>> .
>>
>> I would like to know what the GoCD way of doing this is.
>>
>> I'd like to write a plugin for this to make it as easy as possible
>> setting this up. My questions:
>>
>>- Are there already mechanisms in place to facilitate this kind of
>>feature? Is the notification plugin interface suitable for this?
>>-
>>- Should I rather have a task plugin (Aravind is gonna hate me for
>>that ^^) which creates the build status embleme and pushes it via SFTP to 
>> a
>>webserver?
>>- Making the build (embeddable) build status available to the public
>>would require a webserver. Can GoCD's built-in webserver be abused for
>>this? Is it recommended? If not, why?
>>
>> Thank you for your inputs!
>>
>>
>> Regards,
>> ~ Joel
>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/a4f6a5b4-1427-4680-8d48-e1dc2e3231f6n%40googlegroups.com
>> 
>> .
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwvkWUj9VJ4d8j36q1SG-Y8CxrFz7x_mq7N%3DquGnhvxMw%40mail.gmail.com.


Re: [go-cd] Public build status query

2020-12-03 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
If it helps, I tried doing this a few years back. May be these might serve
as a basis for what you want to achieve

https://github.com/ashwanthkumar/gocd-build-badge-notifier

https://github.com/ashwanthkumar/gocd-build-badge-server

Some practical problems are that GoCD installations are generally not
exposed to public and I was using GitHub at that time and their cache
system wouldn't pick up the image for Readme. That's why the build server
that collects this and renders the image. If I were to do it today and
everything is inside a corp network, I would run an embedded server inside
the plugin and see if we could expose the images from that instead. To
avoid additional infrastructure.



On Thu, 3 Dec, 2020, 19:06 Joel Bodenmann,  wrote:

> Hello folks,
>
> Coming from Jenkins I am used to the embeddable build status
>  which exposes the
> build status embleme to the public. Looks like this
> .
>
> I would like to know what the GoCD way of doing this is.
>
> I'd like to write a plugin for this to make it as easy as possible setting
> this up. My questions:
>
>- Are there already mechanisms in place to facilitate this kind of
>feature? Is the notification plugin interface suitable for this?
>-
>- Should I rather have a task plugin (Aravind is gonna hate me for
>that ^^) which creates the build status embleme and pushes it via SFTP to a
>webserver?
>- Making the build (embeddable) build status available to the public
>would require a webserver. Can GoCD's built-in webserver be abused for
>this? Is it recommended? If not, why?
>
> Thank you for your inputs!
>
>
> Regards,
> ~ Joel
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/a4f6a5b4-1427-4680-8d48-e1dc2e3231f6n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cws0uLO9LL0zSN5faiKc10kosRHwC_Ters2qshAjiSuVQ%40mail.gmail.com.


Re: [go-cd] Deployment

2020-10-29 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Hello John, GoCD doesn't force you to use any particular tool for
deployment. You can use a simple FTP or SCP commands from a PS / BAT file
to copy your project build artifacts to a remote server for deployment.


On Thu, Oct 29, 2020 at 9:36 PM John Lawrence 
wrote:

> I am new to GoCD and not familiar with Ant. My deployment is very simple;
> just copying files to an IIS directory. If I use npm to build my
> executables, do I need to use Ant to deploy code to my web server?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/1cf613d9-9c86-4b71-bc8d-569d7c1dd08en%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyoC9OhWmV6DPs2ur%3DH%3D2WEsFEmdPg8UT8_AvYrmuExJQ%40mail.gmail.com.


Re: [go-cd] How to clear cached material source repo on gocd server?

2020-10-05 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Make a new commit to that repo. It should fix the problem. GoCD stores the
state in the DB.

On Mon, 5 Oct, 2020, 15:54 Bojan S.,  wrote:

> Hi all.
>
> Source repo for 3rd party lib I am using has forced pushed some changed to
> master, which our gocd accepted, but they removed those commits back to pre
> force pushed state.
>
> Now, my pipeline is stuck at "new" forced pushed state, and it cannot
> collect latest master, which is basically old one.
>
> How can I clear git cache on gocd server to use current master state
> always without getting stuck on git repo illegal state?
>
> Kind regards
> B
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/629dc34a-2f02-4479-8cd9-b257b7ad247fn%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cw%3DJ8jQvxU9C9x3fU9FwUKibirAnx4svX8DTq-wL74daw%40mail.gmail.com.


Re: [go-cd] GOCD GitHUB Integration and Workflow

2020-08-27 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
You can use Github with GoCD.

   1. If you're using GoCD in a Private Subnet, you might want to make sure
   you're able to access port 22 (for SSH) or 443 (for HTTPS) based cloning
   from Github. Check both on the Security Group and NACLs (if any). In short,
   If you can do a *git clone* of your repository from the GoCD instance
   (and other instances where you run the agents) manually then GoCD can also
   do it for you.
   2. If you prefer to use the Pipeline as Code approach, then you should
   check out https://github.com/tomzo/gocd-yaml-config-plugin. This plugin
   is needed to use a yaml file for pipeline definition(s). Check out the
   README on the repo for how to set it up and use it.

Bonus: If you're using Pull Requests based workflow you might also want to
check out Github-PR plugin (
https://github.com/ashwanthkumar/gocd-build-github-pull-requests). I'm the
author of that plugin.


On Thu, Aug 27, 2020 at 6:59 PM rajesh bathula  wrote:

> HI All,
>
> I am a circleCI user migrating to GOCD, can you guys suggest me best
> practice to follow and steps to follow doc.
> 1. Integrating GOCD in AWS Private Subnet to GitHUB repo -- should trigger
> on every commit to master.
> 2. where should i place the GOCD workflows, in CIrcleCI case i have a
> folder as .circleci in root of repo and placed workflow yml in it.
>
> Any docs or example GitHUB repos appreciated,
>
> Thanks in advance,
> Rajesh B.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/dbac9cda-4ced-48c9-873a-54b9fb15d6ecn%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx%2BHOPT4owz2owc%3D_bt6xr_0RWtQTqCoP%2B7z77-4au%2BKQ%40mail.gmail.com.


Re: [go-cd] Debugging SMTP connection problem

2020-08-27 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I'll probably wait for GoCD Developers to respond on the SMTP log. AFAIK
there aren't any but there may be a flag to enable it.

Based on the stack trace you shared earlier, it looks like there was an
error with the credentials that was passed to GoCD.

javax.mail.AuthenticationFailedException: 451 4.3.2 Internal server error


Thanks,

On Thu, Aug 27, 2020 at 10:25 PM Jeroen Oortwijn <
jeroen.oortwijn.rom...@gmail.com> wrote:

> I made a simple test application in C#:
> namespace SMTP_send_email_test
> {
> class Program
> {
> static void Main(string[] args)
> {
> var mimeMessage = new MimeKit.MimeMessage();
> mimeMessage.From.Add(new MimeKit.MailboxAddress("GoCD server",
> "gocd@***.**"));
> mimeMessage.To.Add(new MimeKit.MailboxAddress("GoCD server",
> "gocd@***.**"));
> mimeMessage.Subject = "Test message";
> mimeMessage.Body = new MimeKit.TextPart() { Text = "This is a
> test!" };
>
> using (var smtpClient = new MailKit.Net.Smtp.SmtpClient(new
> MailKit.ProtocolLogger("smtp.log")))
> {
> smtpClient.Connect("mail.antagonist.nl", 465,
> MailKit.Security.SecureSocketOptions.SslOnConnect);
> smtpClient.Authenticate("gocd@***.**", "");
> smtpClient.Send(mimeMessage);
> smtpClient.Disconnect(true);
> }
> }
> }
> }
>
> And when run on the same PC as the GoCD server is running, it was able to
> send the mail (from smtp.log):
> Connected to smtps://mail.antagonist.nl:465/
> S: 220 smtp ESMTP ready
> C: EHLO [10.0.2.15]
> S: 250-smtp
> S: 250 AUTH PLAIN LOGIN
> C: AUTH PLAIN 
> S: 235 2.0.0 OK
> C: MAIL FROM:
> S: 250 OK
> C: RCPT TO:
> S: 250 Accepted
> C: DATA
> S: 354 Enter message, ending with "." on a line by itself
> C: From: GoCD server 
> C: Date: Thu, 27 Aug 2020 18:37:21 +0200
> C: Subject: Test message
> C: Message-Id: 
> C: To: GoCD server 
> C: MIME-Version: 1.0
> C: Content-Type: text/plain; charset=utf-8
> C:
> C: This is a test!
> C: .
> S: 250 OK id=1kBKts-00B44l-6x
> C: QUIT
> S: 221 s188.webhostingserver.nl closing connection
>
> So it would be nice if I can see the SMTP log of the GOCD server, so I can
> further debug the issue.
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/b398df0a-1372-435a-8e07-0fce9df130a0n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxYB2XnKGD4nVXZPMN_yLj_GqZnarTiJbgchJizSFOB9w%40mail.gmail.com.


Re: [go-cd] Debugging SMTP connection problem

2020-08-27 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
>From the logs looks like the GoCD server is not able to connect to the SMTP
server that's configured. May be check the firewall settings?

The relevant section is the SocketTimeoutException from the logs.

On Thu, 27 Aug, 2020, 20:35 Jeroen Oortwijn, <
jeroen.oortwijn.rom...@gmail.com> wrote:

> Hello,
>
> I'm trying to set up the Email server on the GoCD server (
> http://localhost:8153/go/admin/config/server#!email-server), but I can't
> get it to work.
>
> When I fill in all the details and click the Send Test Email button, after
> a while the following message appears:
> There was an unknown error performing the operation. Possible reason (Not
> Acceptable)
>
> In the server log (go-server.log) appears the following:
> 2020-08-27 16:51:18,460 ERROR [Thread-5048] GoSmtpMailSender:56 - Sending
> failed for email [Go Email Notification] to [gocd@***.**]
> javax.mail.MessagingException: Exception reading response
> at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2460)
> at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:2187)
> at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:740)
> at javax.mail.Service.connect(Service.java:366)
> at
> com.thoughtworks.go.config.GoSmtpMailSender.send(GoSmtpMailSender.java:51)
> at
> com.thoughtworks.go.config.BackgroundMailSender.lambda$send$0(BackgroundMailSender.java:48)
> at java.base/java.lang.Thread.run(Unknown Source)
> Caused by: java.net.SocketTimeoutException: Read timed out
> at java.base/sun.nio.ch.NioSocketImpl.timedRead(Unknown Source)
> at java.base/sun.nio.ch.NioSocketImpl.implRead(Unknown Source)
> at java.base/sun.nio.ch.NioSocketImpl.read(Unknown Source)
> at java.base/sun.nio.ch.NioSocketImpl$1.read(Unknown Source)
> at java.base/java.net.Socket$SocketInputStream.read(Unknown Source)
> at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:126)
> at java.base/java.io.BufferedInputStream.fill(Unknown Source)
> at java.base/java.io.BufferedInputStream.read(Unknown Source)
> at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:106)
> at
> com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2440)
> ... 6 common frames omitted
>
> Above messages aren't really helpful in debugging the problem, so I want
> to view the SMTP log, but couldn't find it.
> Is there a way to enable the SMTP log and where is it then located?
>
> Kind regards,
>
> Jeroen Oortwijn
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/83f969d6-72b9-4dbd-a46f-55ff0620041en%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzR7FqiWaTMCELE6R5p9QjUyK0u8iLXr%3D3-%2BzKV_0BybQ%40mail.gmail.com.


Re: [go-cd] material update is currently running but has not showing any activity

2020-08-26 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Please try restarting the GoCD server and see if the issue persists. The
material update generally runs on server.

On Thu, 27 Aug, 2020, 11:01 Sushma Gangaiah, 
wrote:

> Hi All,
>
> Recently I am facing "material update is currently running but has not
> showing any activity" warning, this holds from triggering pipeline also.
> Will be able to trigger pipeline, only after warning is disappeared and it
> might take couple of hours for warning to disappear.
> No issue from git, will be able to clone manually in the same agent.
>
> What might be the cause? and what is the solution to resolve this asap?
>
> Regards,
> Sushma
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/1210b2fe-c779-4ea9-ba78-e7b2de1c8d81n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CxSsd0xdx7N1eZNGOuLKh55TAv2OLmsYABQaTtZpTtNyw%40mail.gmail.com.


Re: [go-cd] How to checkout a git tag

2020-08-24 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Try specifying the tag name in the branch parameter of Git material.

On Tue, 25 Aug, 2020, 05:13 Shalin Patel,  wrote:

> I am writing a pipeline to test upgrade flow with following steps.
> 1) checkout master branch
> 2) checkout old git tag v0.0.1
> 3) checkout latest git tag v0.0.3
>
> I need to checkout code at each git tag with different path or pipeline
> and run upgrade process from v0.0.1 to v0.0.3.  I do not see a way to
> checkout git tag on gocd material. how can I checkout a git tag?
>
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/e7cb2e3b-0852-484d-9f81-0889ea348697n%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cx5JU9OghNMd%3DBpz0MjAH8jvVxJNqLWgE_bfeifu5_%3D2g%40mail.gmail.com.


Re: [go-cd] Config Material Update Error

2020-07-10 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Try deleting the folder in the log file. That might generally fix the
problem. The local .git folder ia corrupt or in a state where GoCD is not
able to auto reset the working directory. Was the repo force pushed anytime
recently? I've seen that also cause these kind of issues in the past.

On Sat, 11 Jul, 2020, 00:01 Greg Valainis,  wrote:

> I wanted to post here in the users group to hopefully get some insight as
> to what is going on.
>
> I am trying to add a configuration repository, but am unable to do so.
> When I add the configuration repository the parsing seems to hang
> indefinitely.  I am adding a json configuration file via the user interface
> (as opposed to editing the config xml).  Looking at the server log files,
> the only bit of information I get is that 'git reset failed'.
>
> I am running Go Server 20.5.0 on windows Server 2016.  I have attached the
> pertinent parts of the server log file and my pipeline configuration file.
>
> Any idea what is going on here?
>
> -Greg Valainis
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/3e48e23f-23d7-4378-a23b-b33581e452bao%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyJ%3DaNsv2twBUCMD1ma0%3DxTAVKnPFQrS7z%2BVkovdfJH7g%40mail.gmail.com.


Re: [go-cd] gocd - upload artifact to google storage bucket

2020-06-24 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I've been using S3 for artifact storage (one of the authors of
gocd-s3-artifacts  suite of
plugins) for a long time now, and we still have to handle the same issue.
You need AWS Credentials in terms of AccessKey and SecretKey or IAM roles
on the instances where the GoCD server and/or agent(s) are running. The S3
plugins ask the administrator of GoCD to set these configurations as part
of the plugin installation. I don't have much experience in GKE, maybe
others using GCP for running GoCD might be able to respond and help you
with setting up the required credentials.

Thanks,

On Wed, Jun 24, 2020 at 8:35 PM Bojan S.  wrote:

> Thanks, I know about plugins, there is only S3 plugin available.
>
> Problem using gsutil is that it requires GCE credentials of kind, either
> user or service account.
>
> I know how to do that for the source repo, like github etc.
> I am not sure how to add service account to helm GoCD, yet I cannot find
> that anyone tried something like this.
> Looks like everyone is mostly using S3 service.
>
> Kind regards,
> Bojan
> On Wednesday, June 24, 2020 at 3:48:52 PM UTC+2 ashwant...@gmail.com
> wrote:
>
>> Looking at https://www.gocd.org/plugins.html, I don't think there is any
>> Google Storage plugin at this point for GoCD. One way to upload an artifact
>> is to have a task that can use the gsutil cp
>>  from a script
>> or directly as a task.
>>
>> Thanks,
>>
>> On Wed, Jun 24, 2020 at 6:41 PM Bojan Saric  wrote:
>>
>>> Hi,
>>> i am using gocd on GKE installed with Helm.
>>>
>>> I was wondering how to copy artifact (in this case tgz file) to Google
>>> storage bucket on successful build?
>>>
>>> I was trying to figure it out, but I unable to do so.
>>>
>>> Thanks in advance
>>>
>>> --
>>> 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/fa5f6572-8a53-4269-bfe4-8af7b8223b21n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>>
>> Ashwanth Kumar / ashwanthkumar.in
>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/9b1025b4-3aae-48cd-9b30-981f99652afan%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cy1zHXWkKqniNBuN%2BssA_kc-jq9nf2wX5%3DamdLY_n4u0g%40mail.gmail.com.


Re: [go-cd] gocd - upload artifact to google storage bucket

2020-06-24 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Looking at https://www.gocd.org/plugins.html, I don't think there is any
Google Storage plugin at this point for GoCD. One way to upload an artifact
is to have a task that can use the gsutil cp
 from a script or
directly as a task.

Thanks,

On Wed, Jun 24, 2020 at 6:41 PM Bojan Saric  wrote:

> Hi,
> i am using gocd on GKE installed with Helm.
>
> I was wondering how to copy artifact (in this case tgz file) to Google
> storage bucket on successful build?
>
> I was trying to figure it out, but I unable to do so.
>
> Thanks in advance
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/fa5f6572-8a53-4269-bfe4-8af7b8223b21n%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CydTQmR8Q82jGdkwQvU8k%3Dq1s9XoVubSHoiK5U2R07feg%40mail.gmail.com.


Re: [go-cd] GOCD Server slow....

2020-06-10 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Generally as a routine I loosely check these (in the given order):

   1. Internet speed test. I'm from India, so I need to make sure
   my internet is working fine.
   2. Try resetting / clearing cache for the domain on your browser or try
   incognito mode (if available).
   3. Check gocd-server.log for any error / warning messages.
   4. Use jps to check the server process for any thread stuck doing
   something.
   5. Restarting gocd-server (You've checked this one).
   6. Low Disk space (I think you've checked this one).
   7. top / htop to see if something else is taking up CPU cycles.
   8. iostat to check for large iowait times. This could mean your disk is
   worn out and it might need a replacement / change.
   9. Reboot the underlying instance, if possible.

If you've tried all of the above, then sharing any relevant logs from
gocd-server.log and gocd version might help others in the mailing list to
help you.

Thanks,

On Thu, Jun 11, 2020 at 4:10 AM Ajay Choudhary  wrote:

> Hi,
>
> From the past two-three days, our GOCD server behaves very slow, I have
> deleted all pipelines folder under the artifact folder, ran GC on the
> server, also restarted a couple of times, and deleted pipeline files from
> Agents too. but nothing works. any suggestions?
>
> Thanks & Regards
> Ajay
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/d924e91b-8d52-4558-aa9d-7240fe3d9718o%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CwpTqFMaPOytrH5cZGd2%3DP%3DSfncDX7uoXnTabuYECQYyQ%40mail.gmail.com.


Re: [go-cd] Anyone else getting subversion SSL expiration notifications today?

2020-05-31 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Wild thought, Could it be related to this ongoing issue on Sectigo root CA
expiring on May 31?
https://www.reddit.com/r/linux/comments/gshh70/sectigo_root_ca_expiring_may_not_be_handled_well/

Quoting from the thread on reddit.
> It looks like some older distributions of linux (we've seen issues with
Deb 9 and earlier and Ubuntu 16.04 and earlier) will not properly
expire/ignore this root cert unless it is actually removed. Ubuntu 18 and
up, as well as Deb 10 are unaffected.


On Mon, Jun 1, 2020 at 3:40 AM Greg O'Lone  wrote:

> Starting yesterday or today we've started getting notifications on our
> materials that say:
>
> --- EXIT CODE (1) ---
>
> --- STANDARD OUT ---
> 
> 
> --- STANDARD ERR ---
> STDERR: svn: E170013: Unable to connect to a repository at URL 'https://.'
> STDERR: svn: E230001: Server SSL certificate verification failed: certificate 
> has expired
> ---
>
>
> I removed the svn ~/subversion/auth configuration and reconnected at the 
> command line but it doesn't solve the material problem inside gocd.
>
>
> Thoughts?
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/93b86c88-83eb-4566-ba9b-ca80b4d9df9b%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cwcy4MaGuT5ZSk%2BFPHK7B_gjkDsM2zUqDSkMNsmdoYsgw%40mail.gmail.com.


Re: [go-cd] Re: I am looking for the step to follow for enabling email notification for one of GoCD pipeline, someone can please help

2020-05-05 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
Hello Sunaina,

If you want more control on the notifications, consider adding a task
(preferably) as the last stage in the pipeline that can send you an email
with whatever template / attachments that's needed. This could be achieved
using a custom program  /
script

or if you're using a Linux based machine, you can also configure postfix

on the agent(s) and use mail  / mailx
 commands.

On Mon, May 4, 2020 at 10:12 PM Sunaina Awadhiya 
wrote:

> Hi Kritika,
>
> Just curious to know if i can customize email notification default
> template and report can be accessed without GoCD credentials. we generate
> Html report in our application, is there any way to link such report.
>
> Thanks and Regards,
> Sunaina
>
> On Mon, May 4, 2020 at 9:10 AM kritik...@thoughtworks.com <
> kritika.si...@thoughtworks.com> wrote:
>
>> Hey,
>>
>> This might be helpful to you:
>> https://docs.gocd.org/current/configuration/dev_notifications.html
>>
>> Thanks
>> Kritika
>>
>> On Friday, May 1, 2020 at 9:48:34 PM UTC+5:30 s.saw...@gmail.com wrote:
>>
>>> I am looking for the step to follow for enabling email notification for
>>> one of GoCD pipeline, someone can please help
>>>
>> --
>> 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+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/go-cd/84501a74-8451-4bba-a2f3-8da079ea3810%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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/CA%2B7TbjKAKcKVai-_zGo14xXJQ1DEYqLoCRJW_f6hXbxE1BuxKw%40mail.gmail.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CyCnMKTFrsiZvBuhYqcyrGC2EqXrjy9zkAz80aBw2Ohrw%40mail.gmail.com.


Re: [go-cd] Plugins - Post GoCD Upgrade

2020-04-29 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
I guess not all plugins implement an icon like the bundled version. You
might want to check the plugin logs for possible errors or try using those
plugins to see if they work or not.

On Wed, Apr 29, 2020 at 6:30 PM Bala s  wrote:

> Hi All,
>
> Thanks for your support. We can able to upgrade go server to 19.x version,
> but the plugins used earlier are not supporting with the new version.
>
> We use maven build, nrm poller, yum. All the plugins are showing with a
> "?" symbol instead of the icons. Other inbuilt plugins bundled with the
> server are displaying properly.
>
> Does any one faced this issue and any suggestions.
>
> Thanks,
> Bala
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/6d3cb789-3e5b-4a13-9664-acbb917165c6%40googlegroups.com
> 
> .
>


-- 

Ashwanth Kumar / ashwanthkumar.in

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7CzTSdWSiuHVWWZt%2B4-nkzpVfDZ_WF2C4USidRR8GyveEg%40mail.gmail.com.


Re: [go-cd] failure trying to start a gocd-server docker image v19.10.0 and onwards

2020-04-21 Thread &#x27;Ashwanth Kumar&#x27; via go-cd
This blog post might help you -
https://www.gocd.org/2019/06/25/GoCD-non-root-containers/


On Tue, 21 Apr, 2020, 17:37 Srinivas Jonnalagadda, <
srini.jonnalaga...@gmail.com> wrote:

> Here is my Dockerfile
>
> ---
> FROM gocd/gocd-server:v19.10.0
>
> WORKDIR .
> #RUN echo pwd && ls -l
> ARG ipaddr
>
> USER go
>
> COPY /config/cruise-config.xml /godata/config/cruise-config.xml
> #RUN  sed -i "s/HOST_IP/$ipaddr/g"  /godata/config/cruise-config.xml &&
> chown -R go:go /godata
>
> #RUN chown -R go:root /godata
>
> ENV GOCDDATA=/godata
> --
>
> And this is the error I get upon
>
> --
> docker run -it --name gocd-server -p8153:8153 -p8154:8154
> gocd-server:latest
>
> /docker-entrypoint.sh: Creating directories and symlinks to hold GoCD
> configuration, data, and logs
> $ mkdir -v /godata/artifacts
> created directory: '/godata/artifacts'
> $ ln -sv /godata/artifacts /go-working-dir/artifacts
> '/go-working-dir/artifacts' -> '/godata/artifacts'
> $ ln -sv /godata/config /go-working-dir/config
> '/go-working-dir/config' -> '/godata/config'
> $ mkdir -v /godata/db
> created directory: '/godata/db'
> $ ln -sv /godata/db /go-working-dir/db
> '/go-working-dir/db' -> '/godata/db'
> $ mkdir -v /godata/logs
> created directory: '/godata/logs'
> $ ln -sv /godata/logs /go-working-dir/logs
> '/go-working-dir/logs' -> '/godata/logs'
> $ mkdir -v /godata/plugins
> created directory: '/godata/plugins'
> $ ln -sv /godata/plugins /go-working-dir/plugins
> '/go-working-dir/plugins' -> '/godata/plugins'
> $ mkdir -v /godata/addons
> created directory: '/godata/addons'
> $ ln -sv /godata/addons /go-working-dir/addons
> '/go-working-dir/addons' -> '/godata/addons'
> /docker-entrypoint.sh: Creating directories and symlinks to hold GoCD
> wrapper binaries
> $ ln -sv /go-server/bin /go-working-dir/bin
> '/go-working-dir/bin' -> '/go-server/bin'
> $ ln -sv /go-server/lib /go-working-dir/lib
> '/go-working-dir/lib' -> '/go-server/lib'
> $ ln -sv /go-server/run /go-working-dir/run
> '/go-working-dir/run' -> '/go-server/run'
> $ ln -sv /go-server/wrapper /go-working-dir/wrapper
> '/go-working-dir/wrapper' -> '/go-server/wrapper'
> $ ln -sv /go-server/wrapper-config /go-working-dir/wrapper-config
> '/go-working-dir/wrapper-config' -> '/go-server/wrapper-config'
> $ cp -rfv /go-server/config/logback-include.xml
> /go-working-dir/config/logback-include.xml
> cp: can't create '/go-working-dir/config/logback-include.xml': Permission
> denied
> /docker-entrypoint.sh: cannot cp -rfv
> /go-server/config/logback-include.xml
> /go-working-dir/config/logback-include.xml
>
> 
>
> Any help would be appreciated. I was working with v19.5.0 earlier and
> things were fine.
>
> Thanks and Regards,
> Srinivas
>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/go-cd/9ecae774-090e-45a2-adc3-cd8645894103%40googlegroups.com
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/go-cd/CAD9m7Cy2BXoh9Sum1_9x5KWQbOBWEf%3DYXM6_xFF6jUTCJHgRcQ%40mail.gmail.com.


  1   2   >