On the one hand, M-programmers are so harsh that they write any application software themselves. And the task of assembling a project should not cause much difficulty. Indeed, what is difficult is to: make a request to the version control server, parse the answer and pull out the revision number, compare it with the revision number of the downloaded code, call the executable file and download the sources, load them into the database, compile , save the results, generate a report, fasten a web interface to this, add the ability to change settings, schedules, and so on. On the other hand, how much time are you going to spend on it?:: '>' - :: '>>' - :: '@' - :: utf8 - @chcp 65001 :: , Jenkins @IF NOT DEFINED WORKSPACE EXIT 1 :: :: :: %CD% - [C]urrent [D]irectory :: (bat) @SET ERRFLAG=%CD%\error.flag :: - @DEL "%ERRFLAG%" ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: CACHE :: build.cos Cache ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cache :: Cache @ECHO SuperUser>build.cos @ECHO YourPassword>>build.cos :: NAMESPACE @ECHO zn "USER" >>build.cos :: ; :: %WORKSPACE% - Jenkins @ECHO set sc=$SYSTEM.OBJ.ImportDir("%WORKSPACE%","*.xml","ck",.err,1) >>build.cos :: , , Jenkins @ECHO if sc'=1 do $SYSTEM.OBJ.DisplayError(sc) >>build.cos :: cos - , bat @ECHO if sc'=1 set file="%ERRFLAG%" o file:("NWS") u file do $SYSTEM.OBJ.DisplayError(sc) c file >>build.cos :: Cache @ECHO halt >>build.cos :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: Cache :: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: C:\InterSystems\Cache\bin\cache.exe -s C:\InterSystems\Cache\mgr -U %%SYS <%CD%\build.cos :: cos - - Jenkins @IF EXIST "%ERRFLAG%" EXIT 1 Source: https://habr.com/ru/post/211843/
All Articles