[kotlin] remove trail slash
fun removeTrailSlash(s: String): String { return s.replace(Regex("/$"), "") } fun String.removeTrailSlash(): String { return CommonUtil.removeTrailSlash(this) } @Test fun removeTrailSlash() { // given val expected = "asdf/qwer" val s = "$expected/" // when val actual = CommonUtil.removeTrailSlash(s) // then assertEquals(expected, actual) } @Test fun removeTrailSlash() { // given val expected = "..
공부
2022. 11. 18. 13:52
[jenkins] timezone 설정
{jenkins_url}/script System.setProperty('org.apache.commons.jelly.tags.fmt.timeZone', 'Asia/Seoul') https://dodonam.tistory.com/240 젠킨스 타임존 설정 젠킨스 타임존 설정 방법은 크게 2가지가 있다. 유저별로 각각 설정하는 방법과 시스템 전체에서 타임존을 변경하는 방법이다. 유저별 설정 > 유저별로 timezone을 각각 설정 1. 유저 정보에 들어간 dodonam.tistory.com
공부
2022. 11. 18. 12:59
728x90
728x90