Skip to content

Commit 36a53c8

Browse files
SessionHero01SessionHero01
SessionHero01
authored and
SessionHero01
committed
Wrong artifact folder
1 parent 31c6460 commit 36a53c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/upload-maven-artifacts.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def upload(environment: Environment):
135135
remote_path = reduce(lambda path, c: path / c,
136136
local_maven_repo_metadata.group_id.split('.'),
137137
Path(f'oxen.rocks/{environment.repo}/maven')
138-
) / local_maven_repo_metadata.artifact_id / local_maven_repo_metadata.artifact_id
138+
) / local_maven_repo_metadata.artifact_id
139139
sftp_commands.extend(_mkdirs_sftp_commands(remote_path))
140140

141141
# Grab the remote maven metadata if it exists
@@ -172,12 +172,14 @@ def upload(environment: Environment):
172172
merged_contents = merged_metadata.to_xml()
173173
merged_metadata_file = create_and_write_temp_file(merged_contents)
174174
tmp_files.append(merged_metadata_file)
175+
os.chmod(merged_metadata_file.name, 0o644)
175176
sftp_commands.append(f'put "{merged_metadata_file.name}" {merged_metadata_filename}')
176177

177178
# Create hashes for the metadata file
178179
merged_contents_bytes = merged_contents.encode('utf-8')
179180
for hash_info in _MAVEN_REPO_METADATA_HASHES:
180181
hash_file = create_and_write_temp_file(hash_info['hasher'](merged_contents_bytes).hexdigest())
182+
os.chmod(hash_file.name, 0o644)
181183
tmp_files.append(hash_file)
182184
sftp_commands.append(f'put "{hash_file.name}" {merged_metadata_filename}.{hash_info["ext"]}')
183185

0 commit comments

Comments
 (0)