コガネブログ

平日更新を目標に Unity や C#、Visual Studio、ReSharper などのゲーム開発アレコレを書いていきます

【Unity】Exception failed: System.Threading.ThreadAbortException: Thread was being aborted.

概要 Exception failed: System.Threading.ThreadAbortException: Thread was being aborted. at (wrapper managed-to-native) System.Threading.WaitHandle.Wait_internal(intptr*,int,bool,int) at System.Threading.WaitHandle.WaitOneNative (System.Run…

【Unity】Internal build system error. Backend exited with code 2.

概要 Internal build system error. Backend exited with code 2. tundra: error: Unexpected stdin Error building Player because scripts had compiler errors Build error: Build failed with 3 error(s) UnityEngine.Debug:LogErrorFormat (string,obje…

【Unity】インポートしたアセットに警告やエラーを設定する方法

概要 using UnityEditor; public class Example : AssetPostprocessor { private void OnPreprocessTexture() { if ( !assetPath.StartsWith( "Assets/" ) ) return; // 警告を設定 context.LogImportWarning( "ピカチュウ", context.mainObject ); // エラ…

【Jenkins】言語を変更できる「Locale」紹介

はじめに 「Locale」を Jenkins に追加することで 言語を変更できるようになります 使用例 「Jenkinsの管理 > システムの設定 > Local」を上記のように設定すると 言語を英語に変更できます

【Jenkins】ERROR: You must authenticate to access this Jenkins.

概要 ERROR: You must authenticate to access this Jenkins. Jenkins CLI 実行時に上記のエラーが発生する現象に遭遇した 「Jenkinsの管理 > グローバルセキュリティの設定」で 「Allow anonymous read access」をオンにして保存したら エラーが発生しなく…

【Unity】Debug.developerConsoleVisible

概要 using System; using UnityEngine; public class Example : MonoBehaviour { private void Start() { Debug.LogError( "ピカチュウ" ); throw new Exception( "ピカチュウ" ); } private void Update() { if ( Input.GetKeyDown( KeyCode.Z ) ) { Debug…

【Jenkins】フッターの「REST API」「Jenkins X.X.X」を消す方法

概要 上記の theme.css を JENKINS_HOME フォルダの「userContent」に格納して 「Jenkinsの管理 > システムの設定 > Theme」に URL を追加します

【Jenkins】左上の Jenkins アイコンを消す方法

概要 上記の theme.css を JENKINS_HOME フォルダの「userContent」に格納して 「Jenkinsの管理 > システムの設定 > Theme」に URL を追加することで 左上の Jenkins アイコンが 非表示になります

【Jenkins】右下の「凡例」や「Atom feed 全ビルド」を消す方法

概要 上記の theme.css を JENKINS_HOME フォルダの「userContent」に格納して 「Jenkinsの管理 > システムの設定 > Theme」に URL を追加することで 右下の「凡例」や「Atom feed 全ビルド」が非表示になります

【Jenkins】左メニューの「プロジェクト相関関係」や「ファイル指紋チェック」を消す方法

概要 上記の theme.js を JENKINS_HOME フォルダの「userContent」に格納して 「Jenkinsの管理 > システムの設定 > Theme」に URL を追加することで 開発者 プロジェクト相関関係 ファイル指紋チェック マイビュー が 非表示になります

【Jenkins】Invalid parameter type "gitParameter"

概要 pipeline { agent any parameters { gitParameter( branchFilter: 'origin/(.*)', defaultValue: 'main', name: 'BRANCH', type: 'PT_BRANCH' ) } stages { stage('Git') { steps { script { git( branch: params.BRANCH, url: '【リポジトリの URL】' …

【Jenkins】script not yet approved for use

概要 org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use ジョブのビルド時に上記のエラーが発生する現象に遭遇した Jenkins を再起動したら出なくなった

【Jenkins】パラメータ付きビルドでブランチの一覧を表示できる「Git Parameter」紹介

はじめに 「Git Parameter」を Jenkins に追加することで パラメータ付きビルドでブランチの一覧を表示できるようになります 使用例 pipeline { agent any parameters { gitParameter( branchFilter: 'origin/(.*)', defaultValue: 'main', name: 'BRANCH', …

【Jenkins】マウスオーバーでビューの行の色を変える方法

概要 上記の theme.css を JENKINS_HOME フォルダの「userContent」に格納して 「Jenkinsの管理 > システムの設定 > Theme」に URL を追加することで マウスオーバーでビューの行の色を変更できます

【Jenkins】ビューのカラムに最後に失敗したジョブのコンソールへのリンクを追加できる「Console Column」紹介

はじめに 「Console Column」を Jenkins に追加することで ビューのカラムに最後に失敗したジョブのコンソールへのリンクを追加できるようになります 使い方 ビューの変更で「最新の失敗ビルドのコンソール」カラムを追加します