Ubuntu Server에 GitLab 설치 Jenkins BlueOcean 연동 + MSBuild

이미지
1. Ubuntu 설치 먼저 ubuntu 서버를 설치합니다. https://www.ubuntu.com/download/server iso 파일을 다운로드 받고 iso이미지를 통해 부팅가능한 usb를 만듭니다. http://rufus.akeo.ie/  Ubuntu를 설치한 뒤 링크에서 지시하는데로 따라서 gitlab을 설치합니다. https://about.gitlab.com/installation/#ubuntu 2. GitLab Community Edition 설치 쉘에서 다음과 같이 입력합니다. sudo apt-get update : apt-get을 업데이트 합니다. sudo apt-get install -y curl openssh-server ca-certificates : curl, openssh-server, ca-certificates을 설치합니다. 모든 프롬프트결과에 대해서는 y를 입력합니다. curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash: gitlab comunity edition 설치를 위한 스크립트 실행합니다 sudo EXTERNAL_URL="http:// gitlab.example.com " apt-get install gitlab-ce : gitlab을 설치합니다. gitlab.example.com 대신 외부에서 접속할때 사용할 ip 또는 hostname을 사용합니다.  sudo gitlab-ctl reconfigure : 설정을 적용합니다. 설정을 변경할때 마다 실행합니다. 3. GitLab 접속 쉘에서 다음과 같이 입력합니다. ifconfig : 현재 서버의 ip를 확인합니다. 브라우저에서 확인된 IP로 접속한다. Password 설정화면이 나옵니다. Password를 지정하면 관리자로 로그인 합니다. username : root pass...

이미 생성한 git repository에 파일 추가

mk.kim@Munkyu-PC MINGW64 ~/PycharmProjects/UnitTest $ git init Initialized empty Git repository in C:/Users/mk.kim/PycharmProjects/UnitTest/.git/ mk.kim@Munkyu-PC MINGW64 ~/PycharmProjects/UnitTest (master) $ git status On branch master No commits yet Untracked files:   (use "git add ..." to include in what will be committed)         .gitattributes         .gitignore         .pytest_cache/         testSite.py         venv/ nothing added to commit but untracked files present (use "git add" to track) mk.kim@Munkyu-PC MINGW64 ~/PycharmProjects/UnitTest (master) $ git add . … mk.kim@Munkyu-PC MINGW64 ~/PycharmProjects/UnitTest (master) $ git commit -m "init" [master (root-commit) 2a70961] init  909 files changed, 212161 insertions(+) mk.kim@Munky...

svn : getting changed file list

svn : getting changed file list  REVISIONNUMBER to WORKINGCOPY_PATH svn diff -r REVISIONNUMBER :BASE --summarize  WORKINGCOPY_PATH

Visual Studio 2017 Web Deploy 환경 구성

https://docs.microsoft.com/en-us/iis/install/installing-publishing-technologies/installing-and-configuring-web-deploy-on-iis-80-or-later https://msdn.microsoft.com/en-us/library/dd465337(v=vs.110).aspx

Visual Studio 2017 MSBuild Setting

Publish Profile xml version = "1.0" encoding = "utf-8" ?> < Project ToolsVersion = "4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" > < Target Name = "AddGulpOutput" > < ItemGroup > < _CustomFiles Include = "lib\**\*" /> < FilesForPackagingFromProject Include = "%(_CustomFiles.Identity)" > < DestinationRelativePath > lib\%(RecursiveDir)%(Filename)%(Extension) </ DestinationRelativePath > </ FilesForPackagingFromProject > </ ItemGroup > </ Target > < PropertyGroup > < WebPublishMethod > FileSystem </ WebPublishMethod > < PublishProvider > FileSystem </ PublishProvider > < LastUsedBuildConfiguration > Release </ LastUsedBuildConfiguration > < LastUsedPlatform > Any CPU </ LastUs...
데이터베이스가 존재하는 쿼리 SELECT name FROM master.dbo.sysdatabases WHERE name = 'Arch_ESales_' + @search_year 응용 DECLARE @SQL NVARCHAR(MAX) --Check V_CA_PURCHASEORDERS Exists DECLARE @PurchaseOrders NVARCHAR(30) DECLARE @FnGetOrderStatusWithFraud NVARCHAR(40) SET @SQL = N'SELECT @PurchaseOrders = TABLE_NAME FROM Arch_ESales_'+ @search_year + N'.INFORMATION_SCHEMA.TABLES         WHERE TABLE_SCHEMA = ''dbo'' AND TABLE_NAME = ''V_CA_PURCHASEORDERS''' EXECUTE sp_executesql @SQL, N'@PurchaseOrders NVARCHAR(30) OUTPUT', @PurchaseOrders OUTPUT     IF @PurchaseOrders IS NULL BEGIN SET @FnGetOrderStatusWithFraud = N'fnGetOrderStatusWithFraud' SET @PurchaseOrders = N'PurchaseOrders'   END ELSE BEGIN SET @FnGetOrderStatusWithFraud = N'fnGetOrderStatusWithFraud_CA' END

Create ClickOnce Manifest

1. Create Certification file makecert [options] outputCertificateFile C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>makecert -sv Fulfillment_ US.pvk -n CN=forever21 Fulfillment_US.cer -r Option Description -sv   pvkFile Specifies the subject's .pvk private key file. The file is created if none exists. -n   x509name Specifies the subject's certificate name. This name must conform to the X.500 standard. The simplest method is to specify the name in double quotes, preceded by  CN= ; for example, "CN= myName ". -r Creates a self-signed certificate. 2. Create pfx file pvk2pfx /pvk pvkfilename.pvk [/pi pvkpassword] /spc spcfilename.ext [/pfx pfxfilename.pfx [/po pfxpassword] [/f]] C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>pvk2pfx -pvk Fulfillment_ US.pvk -spc Fulfillment_US.cer -pfx Fulfillment_US.pfx /pvk  pvkfilename.pvk Specifies the name of a .pvk file. /spc  spcfilename.ext Specifies the ...