Questions tagged [shell-script]
The shell-script tag has no summary.
38 questions
0
votes
1
answer
155
views
What shell does GitHub Actions use?
If I have something like this in a job on GitHub Actions as part of my workflow,
run: |
echo this >> that
echo the other
what shell does GitHub Actions use?
0
votes
2
answers
97
views
Passing ENV VAR via ConfigMap does not work
apiVersion: v1
kind: ConfigMap
metadata:
name: time-config
data:
TIME_FREQ: "6"
---
apiVersion: v1
kind: Pod
metadata:
name: time-check
spec:
containers:
- name: time-check
...
0
votes
1
answer
152
views
Downloading File from Sonatype Nexus and Uploading it to SFTP server using Jenkins Pipeline
Hello,
I have some files that I want to download from Sonatype Nexus repo and upload it to my SFTP server using a Jenkins pipeline. The repo and the server are all running internally (on the local ...
0
votes
1
answer
43
views
How to collect cumulative report for 32 repos?
We use separate Jenkins jobs to collect unit tests and coverage for each repository. There are 32 such repos. How do we collect cumulative report?
Currently we are going into each job and collecting ...
0
votes
1
answer
313
views
How to determine the color of a shell script task in Ansible?
There are various Ansible modules which can execute my own-written script (ansible.builtin.script, ansible.builtin.shell, ansible.builtin.command). However, I would like to determine the color of the ...
1
vote
1
answer
3k
views
How to exit a jenkins job if a script executing gets access denied?
I have written this script that performs db backup
#!/bin/bash
#For taking backup
DIR=/media/storage/backup/db_backup/
DATESTAMP=$(date +%d-%m-%y-%H-%M)
DB_USER=backup
DB_PORT=$2
DB_PASS='secret'
...
0
votes
2
answers
4k
views
What is the difference between CMD and terminal in Windows machine?
While using the Windows machine we face soo much trouble running the command line scripts on CMD(command prompt). Few commands run successfully but some are not. Why is there any difference between ...
2
votes
1
answer
107
views
Suggestions for a good run command review console
Is there a good web console or tool that would help enable us to review Shell Scripts?
Usually when maintaining a system, we would run scripts that are managed, or we could run scripts that run only ...
1
vote
1
answer
970
views
SSH connection to jenkins server
I have a absh script which connects and exexutes programs from my local to remote server and now this should be executed from jenkins build so for this jenkins is taking continous changes from git for ...
2
votes
1
answer
43
views
Any site to host my little utility script? [closed]
I have a small node js script running in my aws ec2. It is just one file. If I hit the server with a query param, it will do some utility job (like hashing) and return the result in html.
Since its a ...
5
votes
2
answers
8k
views
docker-compose multiple services in a loop
Trying to optimize definition of multiple services with docker-compose.yml
Here is the original, "dumb" variant of the docker-compose.yml:
version: '3'
services:
s1:
build: .
ports:
- "...
2
votes
1
answer
216
views
How can I monitor docker volume usage?
I'm planning to automate docker activities using python. However, I couldn't find any efficient command for monitoring docker volume. So now I wish to use shell commands for that and later it can be ...
1
vote
1
answer
1k
views
create entry-point script to get all env variables starting with VUE_APP_ and take it's value
I would like to Dockerize my existing vuejs app for staging , production and I used multi staged approach to create my app container and I'm using Ubuntu 18.04 and this is my,
Dockerfile
# build stage
...
1
vote
2
answers
89
views
Docker preserve images policy
Can I configure Docker in a such way that it will store only certain amount of tags for the given image e.g. docker images
REPOSITORY TAG ...
1
vote
2
answers
16k
views
How to add shell script to jenkins freestyle job
I have the below shell script:
du -sh /bbhome/shared/data/repositories/* |sort -h |tail -20 |
while IFS= read -r line;do
DIR=`echo $line | awk '{print$2}'`
Rep=`cat $DIR/repository-...