jobs

Mark as successful action for builds in Teamcity

佐手、 提交于 2019-12-11 02:25:33
问题 I have a question to all the experienced Teamcity users out there. I would like to exit out of a job based on a particular condition, but I do not want the status of the job as a failure. Is it possible to mark a job as successful even when you exit out of the job with an "exit code 1" or any pointers to achieve the same (exit out of a Teamcity job but mark the job as successful) through an alternative way is greatly appreciated! Thanks! 回答1: You can use TeamCity service messages to update

PowerShell: Start-Job -scriptblock Multi line scriptblocks?

不羁的心 提交于 2019-12-10 21:03:37
问题 Hoping someone can help me to figure out if this is possible. I have a 20 ish lines that scan a log file in a while loop. I need this to happen in parallel with the rest of the script. The log scanning loop is passing the entries into SQLite and other scripts need to act on this information - hence wanting to run them in parallel. If i use the Job-Start command then it seems the -SciptBlock function will only accept one piped line of commands. I have too many commands to want to pipe so i

Run job on ASP.NET website service start in IIS

﹥>﹥吖頭↗ 提交于 2019-12-10 18:09:27
问题 I have some method that is invoked on Application_Start. And it starts on first page request by any user. But i have another application, dependent on that task that fires during Application_Start. So that if IIS/website is restarted- another application cant get some data from website, until someone requests page on the running website. Is there a way to run some task on website start; without any interaction from user side, just to start website in IIS and do the job i want? PS more details

How to start process over ssh that doesn't terminate when session ends?

妖精的绣舞 提交于 2019-12-10 17:36:33
问题 Is there a way to start a process using ssh that doesn't terminate when the ssh session terminates? I want the job to keep running on the computer I'm ssh-ing into without me having to keep the connection open. 回答1: you can use nohup (assuming you are SSHing into *nix server) 回答2: You could use the screen utility. 回答3: An alternative to screen is dtach. dtach is smaller and more lightweight - in fact it is just the detach part of the screen utility. 来源: https://stackoverflow.com/questions

why SIGHUP signal not received when becoming an Orphaned Process Group

这一生的挚爱 提交于 2019-12-10 14:04:35
问题 In the manual for GNU libc about orphaned process groups, it mentioned : “process groups that continue running even after the session leader has terminated are marked as orphaned process groups. When a process group becomes an orphan, its processes are sent a SIGHUP signal. Ordinarily, this causes the processes to terminate. However, if a program ignores this signal or establishes a handler for it (see Signal Handling), it can continue running as in the orphan process group even after its

start a .exe in the background with parameters in a powershell script

混江龙づ霸主 提交于 2019-12-10 13:24:38
问题 I have a programm which i usually start like this in powershell: .\storage\bin\storage.exe -f storage\conf\storage.conf What is the correct syntax for calling it in the background? I tried many combinations like: start-job -scriptblock{".\storage\bin\storage.exe -f storage\conf\storage.conf"} start-job -scriptblock{.\storage\bin\storage.exe} -argumentlist "-f", "storage\conf\storage.conf" but without success. Also it should run in a powershell script. 回答1: The job will be another instance of

How do I call Start-Job which depends on a function in the same powershell module as the function calling Start-Job?

二次信任 提交于 2019-12-10 12:54:16
问题 I'm writing some powershell to talk to the AWS API, in a single module. I have written one function, Get-CloudFormation , which returns the status of a CloudFormation. I've written another function, Delete-CloudFormation , which after firing off a delete-CF API request, tries to start a job which polls the status of the CloudFormation using my Get-CloudFormation . I call Export-ModuleMember on Get-CloudFormation (but not Delete-CloudFormation ; that's a private function). Get-CloudFormation

Jenkins SYSTEM user removes custom workspace configuration

流过昼夜 提交于 2019-12-10 10:47:36
问题 I have a job NightlyTest-Winx64 configured to use the customWorkspace D:\builds\build-dir\Quick-Winx64-Trunk. Quick-Winx64-Trunk is a job in Jenkins that will checkout the source repository, compile, archive some artifacts and then trigger the NightlyTest-Winx64 job. It triggers NightlyTest-Winx64 to run on the same node using the same workspace so that we're not checking out and compiling twice and only need to run test. On the first run of the NightlyTest-Winx64 the customWorkspace exist

OLE DB provider for linked server reported a change in schema version Error

戏子无情 提交于 2019-12-09 23:45:25
问题 I have a nightly job which is updates table by executing stored procedure but it keeps failing every 2-3 days. DECLARE @return_value int EXEC @return_value = [dbo].[sp_SRA_Analysis_Union] SELECT 'Return Value' = @return_value Below is the error message: Step Name update table Duration 00:00:30 Sql Severity 16 Sql Message ID 7359 Operator Emailed Operator Net sent Operator Paged Retries Attempted 0 Message Executed as user: NT AUTHORITY\SYSTEM. The OLE DB provider "SQLNCLI10" for linked server

how to send a custom object as Job Parameter in Spring Batch?

跟風遠走 提交于 2019-12-09 13:07:33
问题 I have a requirement of sending a Custom Object to the Spring Batch Job , where this Object is used continuously used by the Item Processor for the business requirement. How can we send custom object from outside to the Job Context. This Object changes from Job to Job and generated at runtime depending on Business case. How can send this as a Job Parameter? or is there any way that i can set this Object to the respective Job ? can overriding Spring JobParameter help me in any way? or are