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
a78be3f6
"include/vscode:/vscode.git/clone" did not exist on "fb0dc35861056cbf08f68fd3208aa787e789230e"
Unverified
Commit
a78be3f6
authored
Feb 12, 2024
by
Illia Silin
Committed by
GitHub
Feb 12, 2024
Browse files
add docker credentials before pushing image (#1165)
parent
602c4cc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Jenkinsfile
Jenkinsfile
+6
-2
No files found.
Jenkinsfile
View file @
a78be3f6
...
@@ -134,7 +134,9 @@ def buildDocker(install_prefix){
...
@@ -134,7 +134,9 @@ 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:
""
])
{
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'
}
}
else
{
else
{
...
@@ -146,8 +148,10 @@ def buildDocker(install_prefix){
...
@@ -146,8 +148,10 @@ 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:
""
])
{
retimage
.
push
()
retimage
.
push
()
}
}
}
}
}
def
cmake_build
(
Map
conf
=[:]){
def
cmake_build
(
Map
conf
=[:]){
...
...
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