Re: can I run a stage at a certain time within a pipeline

2020-10-30 Thread Victor Martinez
triggeredBy within the stage context should help you: https://www.jenkins.io/doc/book/pipeline/syntax/#when pipeline { ... triggers { cron 'H H22 * * 1-5' } stages { ... stage('deploy') { when { triggeredBy 'TimerTrigger' } ... }

Re: How to run a visual studio CMD command in a pipeline?

2020-10-30 Thread Victor Martinez
If you run the same command in your terminal, does it work? Does it need any kind of UI access? On Monday, 26 October 2020 at 11:55:23 UTC jesusfern...@gmail.com wrote: > I need to run a elevated x64 Native Tools Command Prompt fro VS 2019 > command ("vcperf /start session") within my pipeline.

Re: why my pipeline creates different workspaces?

2020-10-30 Thread Victor Martinez
Directories with an ampersand (like @tmp, @script, @libs, @2) are specifically created by the pipeline internals, each one got a different context. The ones with number are most likely related to a concurrent build running while other previous build is still running, to avoid clashing with acce

Re: How to get container logs in kubernetes if user has no admin access to execute kubectl commands

2020-10-30 Thread touseef
The issue is i run my application on kubernetes infrastructure which is not mainatined by me.However in case of issue i want some logs to debug It would have been straight forward if i had an access to the cluster via kubectl commands but that not the case, i.e why i some how want to get the

Re: How to get container logs in kubernetes if user has no admin access to execute kubectl commands

2020-10-30 Thread touseef
The issue is i run my application on kubernetes infrastructure which is not mainatined by me.However in case of issue i want some logs to debug the issue.It would have been straight forward if i had an access to the cluster via kubectl commands but that not the case, thats why i some how want