@misterhuydo/sentinel 1.6.7 → 1.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.cairn/.hint-lock
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2026-04-
|
|
1
|
+
2026-04-24T14:02:31.712Z
|
package/.cairn/session.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"message": "Auto-checkpoint at 2026-04-24T13:
|
|
3
|
-
"checkpoint_at": "2026-04-24T13:
|
|
2
|
+
"message": "Auto-checkpoint at 2026-04-24T13:58:01.367Z",
|
|
3
|
+
"checkpoint_at": "2026-04-24T13:58:01.369Z",
|
|
4
4
|
"active_files": [
|
|
5
5
|
"J:\\Projects\\Sentinel\\cli\\bin\\sentinel.js",
|
|
6
6
|
"J:\\Projects\\Sentinel\\cli\\lib\\test.js",
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.6.
|
|
1
|
+
__version__ = "1.6.8"
|
|
@@ -40,7 +40,12 @@ def trigger(repo: RepoConfig, store: StateStore, fingerprint: str, wait: bool =
|
|
|
40
40
|
|
|
41
41
|
def _trigger_jenkins(repo: RepoConfig) -> bool:
|
|
42
42
|
url = f"{repo.cicd_job_url.rstrip('/')}/build"
|
|
43
|
-
|
|
43
|
+
# Use repo's CICD_USER if set; fall back to literal "sentinel". Hardcoding
|
|
44
|
+
# the user (as this previously did) caused 401s for every repo whose Jenkins
|
|
45
|
+
# API token was issued under a non-"sentinel" username.
|
|
46
|
+
resp = requests.post(
|
|
47
|
+
url, auth=(repo.cicd_user or "sentinel", repo.cicd_token), timeout=15,
|
|
48
|
+
)
|
|
44
49
|
success = resp.status_code in (200, 201, 204)
|
|
45
50
|
if success:
|
|
46
51
|
logger.info("Jenkins build triggered: %s", repo.cicd_job_url)
|