Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moobench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SustainKieker
moobench
Commits
64d2ece8
Commit
64d2ece8
authored
Sep 1, 2022
by
Reiner Jung
Browse files
Options
Downloads
Patches
Plain Diff
Update jenkinsfile and separated upload script.
parent
13d2aae4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Jenkinsfile
+1
-14
1 addition, 14 deletions
Jenkinsfile
upload.sh
+51
-0
51 additions, 0 deletions
upload.sh
with
52 additions
and
14 deletions
Jenkinsfile
+
1
−
14
View file @
64d2ece8
...
...
@@ -62,20 +62,7 @@ pipeline {
steps
{
sshagent
(
credentials:
[
'kieker-irl-key'
])
{
unstash
'yaml'
sh
'''
mkdir all
cd all
sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/kieker-java.yaml
sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/kieker-python.yaml
# sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/opentelemetry.yaml
# sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}/inspectit.yaml
cd ..
compile-results/bin/compile-results -i *-results.yaml -l all -t all -j all -w 100
cd all
echo "put *.yaml" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
echo "put *.html" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
echo "put *.json" | sftp -oNoHostAuthenticationForLocalhost=yes -oStrictHostKeyChecking=no -oUser=repo -F /dev/null -i ${KEYSTORE} ${UPDATE_SITE_URL}
'''
sh
"./upload.sh ${KEYSTORE} ${UPDATE_SITE_URL}"
}
}
post
{
...
...
...
...
This diff is collapsed.
Click to expand it.
upload.sh
0 → 100644
+
51
−
0
View file @
64d2ece8
#!/bin/bash
#
# Kieker moobench upload script
#
# Usage: upload.sh
# configure base dir
BASE_DIR
=
$(
cd
"
$(
dirname
"
$0
"
)
"
;
pwd
)
#
# source functionality
#
if
[
!
-d
"
${
BASE_DIR
}
"
]
;
then
echo
"Base directory
${
BASE_DIR
}
does not exist."
exit
1
fi
# load configuration and common functions
if
[
-f
"
${
BASE_DIR
}
/config.rc"
]
;
then
source
"
${
BASE_DIR
}
/config.rc"
else
echo
"Missing configuration:
${
BASE_DIR
}
/config.rc"
exit
1
fi
if
[
-f
"
${
BASE_DIR
}
/common-functions.sh"
]
;
then
source
"
${
BASE_DIR
}
/common-functions.sh"
else
echo
"Missing library:
${
BASE_DIR
}
/common-functions.sh"
exit
1
fi
KEYSTORE
=
"
$1
"
UPDATE_SITE_RUL
=
"
$2
"
mkdir
all
cd
all
sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
/kieker-java.yaml
sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
/kieker-python.yaml
sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
/opentelemetry.yaml
sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
/inspectit.yaml
cd
..
$COMPILE_RESULTS_BIN
-i
*
-results
.yaml
-l
all
-t
all
-j
all
-w
100
cd
all
echo
"put *.yaml"
| sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
echo
"put *.html"
| sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
echo
"put *.json"
| sftp
-oNoHostAuthenticationForLocalhost
=
yes
-oStrictHostKeyChecking
=
no
-oUser
=
repo
-F
/dev/null
-i
${
KEYSTORE
}
${
UPDATE_SITE_URL
}
# end
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment