Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
stream8_snapshots
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
linuxsupport
cronjobs
stream8_snapshots
Commits
76068bc4
Commit
76068bc4
authored
3 years ago
by
Alex Iribarren
Browse files
Options
Downloads
Plain Diff
Merge branch 'find' into 'master'
Fix find commands See merge request
!22
parents
f8c38c59
2664e03d
No related branches found
No related tags found
1 merge request
!22
Fix find commands
Pipeline
#2514779
passed
3 years ago
Stage: build
Stage: deploy_test
Stage: deploy
Stage: cleanup
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
stream8_snapshots/regen-repos.sh
+0
-1
0 additions, 1 deletion
stream8_snapshots/regen-repos.sh
stream8_snapshots/sendemail.sh
+1
-1
1 addition, 1 deletion
stream8_snapshots/sendemail.sh
stream8_snapshots/tripwire.sh
+2
-2
2 additions, 2 deletions
stream8_snapshots/tripwire.sh
with
3 additions
and
4 deletions
stream8_snapshots/regen-repos.sh
+
0
−
1
View file @
76068bc4
...
...
@@ -4,7 +4,6 @@ source /root/common.sh
REPO_REGEX
=
"
$1
"
TAG_REGEX
=
"
$2
"
#REGEX="c${RELEASE}-.*"
REGEN_JOB
=
"prod_koji-regenrepo"
PAYLOAD
=
"{"
...
...
This diff is collapsed.
Click to expand it.
stream8_snapshots/sendemail.sh
+
1
−
1
View file @
76068bc4
...
...
@@ -22,7 +22,7 @@ for ARCH in $CENTOS_ARCHES; do
for
REPO
in
$ALL_REPOS
;
do
CLEANREPO
=
"
${
REPO
/\//-
}
"
if
[[
$CHANNEL
==
"daily"
]]
;
then
SEARCH
=
"
-name .diff
-path */
$REPO
/
$ARCH
/*"
SEARCH
=
"-path */
$REPO
/
$ARCH
/*
-name .diff
"
elif
[[
$CHANNEL
==
"testing"
]]
;
then
SEARCH
=
"-name .diff:*-
$LN_TESTING
:
$CLEANREPO
:
$ARCH
"
else
...
...
This diff is collapsed.
Click to expand it.
stream8_snapshots/tripwire.sh
+
2
−
2
View file @
76068bc4
...
...
@@ -6,7 +6,7 @@ echo "Checking for dangerous packages..."
TMPDIR
=
`
mktemp
-d
`
find
"
$DEST
"
-name
.diff
-not
-path
'*/CERN/*'
-not
-path
'*/Source/*'
-not
-path
'*/Debug/*'
-exec
cat
{}
\;
|
sort
-u
>
$TMPDIR
/alldiffs
find
"
$DEST
"
-not
-path
'*/CERN/*'
-not
-path
'*/Source/*'
-not
-path
'*/Debug/*'
-name
.diff
-exec
cat
{}
\;
|
sort
-u
>
$TMPDIR
/alldiffs
while
IFS
=
read
-r
LINE
;
do
while
IFS
=
read
-r
RPM
;
do
...
...
@@ -20,7 +20,7 @@ while IFS= read -r LINE; do
for
ARCH
in
$ARCHES
;
do
# Assemble all the repos into a list of --repofrompath parameters for repoquery
repos
=
"
`
find
"
$DEST
"
-path
"*/
${
ARCH
}
/*"
-name
'repodata'
-not
-path
'*/Source/*'
-not
-path
'*/Debug/*'
|
sed
's#/repodata##'
|
awk
'{printf " --repofrompath=r" NR "," $0}'
`
"
repos
=
"
`
find
"
$DEST
"
-path
"*/
${
ARCH
}
/*"
-not
-path
'*/Source/*'
-not
-path
'*/Debug/*'
-name
'repodata'
|
sed
's#/repodata##'
|
awk
'{printf " --repofrompath=r" NR "," $0}'
`
"
latest_all
=
`
repoquery
--disablerepo
=
'*'
$repos
--latest-limit
1
$N
2>/dev/null
`
latest_cern
=
`
repoquery
--disablerepo
=
'*'
--repofrompath
=
r17,
${
DEST
}
/CERN/
${
ARCH
}
/
--latest-limit
1
$N
2>/dev/null
`
...
...
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
register
or
sign in
to comment