Changed Position of Flutter Upgrade
All checks were successful
andreas-personal/jenkins-with-docker/pipeline/head This commit looks good
All checks were successful
andreas-personal/jenkins-with-docker/pipeline/head This commit looks good
This commit is contained in:
parent
6eca980c68
commit
c17fc388d4
20
Dockerfile
20
Dockerfile
@ -24,20 +24,22 @@ RUN apt-get install -y docker-ce-cli
|
|||||||
COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
|
COPY --chown=jenkins:jenkins executors.groovy /usr/share/jenkins/ref/init.groovy.d/executors.groovy
|
||||||
|
|
||||||
# Install flutter
|
# Install flutter
|
||||||
RUN apt update
|
RUN apt-get update
|
||||||
RUN apt install -y curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6 python3 sed
|
RUN apt-get install -y\
|
||||||
RUN apt clean
|
curl git wget \
|
||||||
|
unzip libgconf-2-4 gdb \
|
||||||
|
libstdc++6 libglu1-mesa fonts-droid-fallback \
|
||||||
|
lib32stdc++6 python3 sed
|
||||||
|
|
||||||
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
|
RUN git clone https://github.com/flutter/flutter.git /usr/local/flutter
|
||||||
RUN git config --global --add safe.directory /usr/local/flutter
|
RUN git config --global --add safe.directory /usr/local/flutter
|
||||||
|
|
||||||
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"
|
ENV PATH="/usr/local/flutter/bin:/usr/local/flutter/bin/cache/dart-sdk/bin:${PATH}"
|
||||||
|
|
||||||
# Install jenkins plugins
|
|
||||||
USER jenkins
|
|
||||||
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"
|
|
||||||
|
|
||||||
# Run flutter upgrade
|
|
||||||
RUN flutter doctor -v
|
RUN flutter doctor -v
|
||||||
RUN flutter channel master
|
RUN flutter channel master
|
||||||
RUN flutter upgrade
|
RUN flutter upgrade
|
||||||
|
|
||||||
|
# Install jenkins plugins
|
||||||
|
USER jenkins
|
||||||
|
RUN jenkins-plugin-cli --plugins "blueocean docker-workflow"
|
Loading…
x
Reference in New Issue
Block a user