Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
composable_kernel_ROCM
Commits
660db601
Unverified
Commit
660db601
authored
Feb 11, 2025
by
Illia Silin
Committed by
GitHub
Feb 11, 2025
Browse files
replace docker credentials (#1881)
parent
b5ca008d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Jenkinsfile
Jenkinsfile
+3
-3
No files found.
Jenkinsfile
View file @
660db601
...
@@ -117,7 +117,7 @@ def getDockerImage(Map conf=[:]){
...
@@ -117,7 +117,7 @@ def getDockerImage(Map conf=[:]){
{
{
echo
"Pulling down image: ${image}"
echo
"Pulling down image: ${image}"
retimage
=
docker
.
image
(
"${image}"
)
retimage
=
docker
.
image
(
"${image}"
)
withDockerRegistry
([
credentialsId:
"docker_
test_
cred"
,
url:
""
])
{
withDockerRegistry
([
credentialsId:
"
ck_
docker_cred"
,
url:
""
])
{
retimage
.
pull
()
retimage
.
pull
()
}
}
}
}
...
@@ -148,7 +148,7 @@ def buildDocker(install_prefix){
...
@@ -148,7 +148,7 @@ def buildDocker(install_prefix){
//force building the new docker if that parameter is true
//force building the new docker if that parameter is true
echo
"Building image: ${image_name}"
echo
"Building image: ${image_name}"
retimage
=
docker
.
build
(
"${image_name}"
,
dockerArgs
)
retimage
=
docker
.
build
(
"${image_name}"
,
dockerArgs
)
withDockerRegistry
([
credentialsId:
"docker_
test_
cred"
,
url:
""
])
{
withDockerRegistry
([
credentialsId:
"
ck_
docker_cred"
,
url:
""
])
{
retimage
.
push
()
retimage
.
push
()
}
}
sh
'docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi'
sh
'docker images -q -f dangling=true | xargs --no-run-if-empty docker rmi'
...
@@ -162,7 +162,7 @@ def buildDocker(install_prefix){
...
@@ -162,7 +162,7 @@ def buildDocker(install_prefix){
catch
(
Exception
ex
){
catch
(
Exception
ex
){
echo
"Unable to locate image: ${image_name}. Building image now"
echo
"Unable to locate image: ${image_name}. Building image now"
retimage
=
docker
.
build
(
"${image_name}"
,
dockerArgs
+
' .'
)
retimage
=
docker
.
build
(
"${image_name}"
,
dockerArgs
+
' .'
)
withDockerRegistry
([
credentialsId:
"docker_
test_
cred"
,
url:
""
])
{
withDockerRegistry
([
credentialsId:
"
ck_
docker_cred"
,
url:
""
])
{
retimage
.
push
()
retimage
.
push
()
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment