remove build url setting from teletraan
remove pinterest specific string in teletraan worker
MODIFY
deploy-board/deploy_board/settings.py
deploy-board/deploy_board/settings.py
@@ -215,7 +215,7 @@ DISPLAY_STOPPING_HOSTS = os.getenv("DISPLAY_STOPPING_HOSTS", "true")
# Pinterest specific settings
IS_PINTEREST = True if os.getenv("IS_PINTEREST", "false") == "true" else False
-BUILD_URL = "https://jenkins.pinadmin.com/job/"
+BUILD_URL = os.getenv("BUILD_URL", None)
TELETRAAN_DISABLE_CREATE_ENV_PAGE = True if os.getenv("TELETRAAN_DISABLE_CREATE_ENV_PAGE", "false") == "true" else False
TELETRAAN_REDIRECT_CREATE_ENV_PAGE_URL = os.getenv("TELETRAAN_REDIRECT_CREATE_ENV_PAGE_URL", None)

MODIFY
deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/worker/HotfixStateTransitioner.java
deploy-service/teletraanservice/src/main/java/com/pinterest/teletraan/worker/HotfixStateTransitioner.java
@@ -152,7 +152,7 @@ public class HotfixStateTransitioner implements Runnable {
// Jenkins job has returned a failure status
if (status.equals("FAILURE")) {
hotBean.setState(HotfixState.FAILED);
- hotBean.setError_message("Failed to create hotfix, see https://jenkins.pinadmin.com/job/" +
+ hotBean.setError_message("Failed to create hotfix, see " + jenkinsUrl +
hotBean.getJob_name() + "/" + hotBean.getJob_num() + "/console for more details");
hotfixDAO.update(hotfixId, hotBean);
LOG.warn("Jenkins returned a FAILURE status during state PUSHING for hotfix id " + hotfixId);
@@ -178,7 +178,7 @@ public class HotfixStateTransitioner implements Runnable {
// Jenkins job has returned a failure status
if (status.equals("FAILURE")) {
hotBean.setState(HotfixState.FAILED);
- hotBean.setError_message("Failed to build hotfix, see https://jenkins.pinadmin.com/job/" +
+ hotBean.setError_message("Failed to build hotfix, see " + jenkinsUrl +
hotBean.getJob_name() + "/" + hotBean.getJob_num() + "/console for more details");
hotfixDAO.update(hotfixId, hotBean);
LOG.warn("Jenkins returned a FAILURE status during state BUILDING for hotfix id " + hotfixId);

remove build url setting from teletraan (#632)

remove pinterest specific string in teletraan worker