version_number_need_to_mofify_jenkinsfile
This commit is contained in:
parent
f0fb1dd58c
commit
57dc7cea48
|
@ -14,6 +14,9 @@ RUN rm -fr /root/.cache/*
|
||||||
COPY ./src ./src
|
COPY ./src ./src
|
||||||
COPY ./public ./public
|
COPY ./public ./public
|
||||||
|
|
||||||
|
ARG version_info
|
||||||
|
ENV REACT_APP_VERSION_INFO=${version_info}
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
|
@ -17,10 +17,10 @@ const ChatPage = () => {
|
||||||
const [stat, setStat] = useState("start");
|
const [stat, setStat] = useState("start");
|
||||||
const [err, setErr] = useState("");
|
const [err, setErr] = useState("");
|
||||||
|
|
||||||
//const version = process.env.REACT_APP_VERSION_INFO;
|
const version = process.env.REACT_APP_VERSION_INFO;
|
||||||
//if (!version) {
|
if (!version) {
|
||||||
// console.info("No version information present at build time.");
|
console.info("No version information present at build time.");
|
||||||
//}else{console.info('version: ${version}');}
|
}else{console.info('version: ${version}');}
|
||||||
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
Loading…
Reference in New Issue