BASH login in Jenkins -
i have jenkins running service. use cygwin run unix shell scripts.
on windows (outside jenkins), can run below: start dos/windows cmd, bash --login -i . ./myscript.sh
with jenkins however, build step: execute windows batch command: c:\cygwin64\bin\bash --login path\to\myscript.sh
i below error:
your group "mkpasswd". indicates gid not in /etc/group , uid not in /etc/passwd
i have set username/password running mkpasswd -l [-d] > /etc/passwd mkgroup -l [-d] > /etc/group.
it appears command bash --login within jenkins not read /etc/asswd , /etc/group files.
how can resolve this?
after user's credential set in cygwin, create build step in jenkins "execute windows batch command":
bash --login -i path\to\myscript.sh
this works me.
Comments
Post a Comment