OutSystems Forge 日本語データベース

Automatic Deployment

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2017-03-14 1.0.0 Remco Dekkinga 10.0.302.0 All All Developer Tools
このプラグインは、Jenkinsのようなサードパーティのツールから展開する機能を追加します。 プラグインには、自動的にデプロイするアプリケーションを選択するための複数の構成を作成できる構成画面と、選択した環境との間で選択したアプリケーションを展開するサードパーティのツールから呼び出すことができるWebサービスという2つの部分があります。 このWebサービスは、アプリケーションが変更されたかどうかをチェックし、それらのアプリケーションの新しいバージョンを作成し、ソースとデスティネーション環境の違いを持つすべてのアプリケーションのデプロイメントパッケージを作成し、デプロイ後のステータスとJSON形式のデプロイメントログを返します。
自動展開プラグイン Forgeから自動展開プラグインをダウンロードしてインストールする パート1:サービスアカウントを作成する [ユーザー管理]> [サービスアカウント]に移動します。 新しいサービスアカウントを作成する わかりやすいユーザー名を与える 選択したソースから選択した宛先に公開することができる役割を与えます アクティブにする必要がありますか? このアカウントを使用する説明を追加する サービスアカウントを保存する 認証パラメータポップアップからの秘密鍵を別のファイルに保存する 自動配備eSpaceの「トークン」サイトの特権を秘密鍵で更新する パート2:自動展開構成を作成する LifeTimeに行き、More> Automatic Deploymentをクリックしてください エラーが表示されると、秘密鍵が正しくないか、サービスアカウントに十分な権限がありません。 新しい自動展開を作成する わかりやすい名前をつける 送信元と送信先のサーバーを選択する 自動デプロイメントのスケジュールを設定するアプリケーションを選択します。 設定を保存する 概要からGuidを保存する パート3:デプロイメントWebサービスのURLを作成する URL:https:// {lifetime-server} / AutomaticDeployment / rest / AutomaticDeployment / Deploy HTTPメソッド:GET コンテンツタイプ:アプリケーション/ JSON ヘッダー:AuthenticationToken 値:{サービスアカウントからの秘密鍵} ヘッダー:ConfigurationGuid 値:{自動配備設定のGuid} パート4:Webサービスを呼び出して応答を読み取ることができるオートメーションツールを設定します。 自動デプロイメントプランの次のステップに進む前に、Webサービスが呼び出され、応答が検証されるデプロイメントステップを実装します。 可能な出力 200:正常にデプロイされました 201:展開するものはありません 202:警告付きで展開 301:エラーが発生して展開されました 302:ユーザーの介入が必要 401:デプロイメント開始前にエラーが発生しました 402:手動で展開を中止しました 403:不明な展開ステータスが返されました:{ステータスコード} サイトのプロパティ RequestTimeout:デフォルトの1時間(この期間内にデプロイメントが完了していることを確認する) CheckStatusInterval:デフォルト1分(0の場合、間隔は30秒になります) トークン:デフォルトは空です。サービスアカウントのトークンで埋める必要があります

[Overview]
This plugin adds the functionality to deploy from third-party tools like Jenkins. The plugin has two parts, a configuration screen where you can create multiple configurations to select which apps you want to deploy automatically and a webservice that can be called from third party tools to deploy the selected applications from and to the selected environments. This webservice checks if your applications changed and creates new versions of those applications, creates a deployment packages of all applications that have differences between the source and destination environments and returns the status after deployment and the deployment log in JSON format. When you have extra requests for this plugin, don't hesitate to contact me.
[Detail]
Automatic Deployment Plugin Download and install the Automatic Deployment plugin from the Forge Part 1: Create a Service Account Go to the User Management > Service Accounts Create a new Service Account Give a descriptive Username Give a role that is allowed to publish from your selected source to your selected destination Is Active should be switched on Add a description where you use this account Save the Service Account Store the private key from the Authentication Parameter popup in a separate file Update the “Token” Site Propery of the Automatic Deployment eSpace with the private key Part 2: Create an Automatic Deployment Configuration Go to LifeTime and click on More > Automatic Deployment When an error is shown, then the private key is not correct or the Service Account doesn’t have enough rights. Create a new Automatic Deployment Give a descriptive name Select a source and destination server Select the applications you want to schedule for automatic deployment Save the configuration Store the Guid from the overview Part 3: Create the url for the deployment webservice URL: https://{lifetime-server}/AutomaticDeployment/rest/AutomaticDeployment/Deploy HTTP Method: GET ContentType: Application/JSON Header: AuthenticationToken Value: {private key from the Service Account} Header: ConfigurationGuid Value: {Guid from the Automatic Deployment Configuration} Part 4: Configure your automation tool that is able to call webservices and reads the response. Implement a deployment step where the webservice is called and the response is validated before continuing to the next step in your automated deployment plan. Possible Outputs 200: Deployed successfully 201: Nothing to deploy 202: Deployed with warnings 301: Deployed with errors 302: User intervention needed 401: Error occurred before deployment started 402: Manually aborted the deployment 403: Unknown deployment status returned: {statuscode} Site Properties RequestTimeout: Default 1 hour (make sure your deployment finishes within this timeframe) CheckStatusInterval: Default 1 minute (when 0, the interval will be 30 seconds) Token: Default empty, should be filled with a token from a Service Account
戻る